MCPcopy Create free account
hub / github.com/F-Stack/f-stack / crypto_cipher

Function crypto_cipher

freebsd/opencrypto/crypto.c:584–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584struct enc_xform *
585crypto_cipher(const struct crypto_session_params *csp)
586{
587
588 switch (csp->csp_cipher_alg) {
589 case CRYPTO_RIJNDAEL128_CBC:
590 return (&enc_xform_rijndael128);
591 case CRYPTO_AES_XTS:
592 return (&enc_xform_aes_xts);
593 case CRYPTO_AES_ICM:
594 return (&enc_xform_aes_icm);
595 case CRYPTO_AES_NIST_GCM_16:
596 return (&enc_xform_aes_nist_gcm);
597 case CRYPTO_CAMELLIA_CBC:
598 return (&enc_xform_camellia);
599 case CRYPTO_NULL_CBC:
600 return (&enc_xform_null);
601 case CRYPTO_CHACHA20:
602 return (&enc_xform_chacha20);
603 case CRYPTO_AES_CCM_16:
604 return (&enc_xform_ccm);
605 default:
606 return (NULL);
607 }
608}
609
610static struct cryptocap *
611crypto_checkdriver(uint32_t hid)

Callers 2

swcr_setup_cipherFunction · 0.85
swcr_cipher_supportedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected