/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto.c | 160 switch (csp->csp_cipher_alg) { in armv8_crypto_probesession() 181 switch (csp->csp_cipher_alg) { in armv8_crypto_probesession() 221 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in armv8_crypto_cipher_setup() 238 if ((csp->csp_cipher_alg == CRYPTO_AES_XTS) || in armv8_crypto_cipher_setup() 239 (csp->csp_cipher_alg == CRYPTO_AES_CBC)) in armv8_crypto_cipher_setup() 243 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in armv8_crypto_cipher_setup() 246 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) { in armv8_crypto_cipher_setup() 320 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) { in armv8_crypto_cipher_process() 348 switch (csp->csp_cipher_alg) { in armv8_crypto_cipher_process()
|
/freebsd/sys/crypto/openssl/ |
H A D | ossl.c | 135 switch (csp->csp_cipher_alg) { in ossl_lookup_cipher() 179 if (csp->csp_cipher_alg != CRYPTO_CHACHA20 && !sc->has_aes) in ossl_probesession() 186 csp->csp_cipher_alg == CRYPTO_CHACHA20 || in ossl_probesession() 192 switch (csp->csp_cipher_alg) { in ossl_probesession() 301 if (csp->csp_cipher_alg != CRYPTO_CHACHA20_POLY1305) in ossl_newsession() 409 if (csp->csp_cipher_alg == CRYPTO_CHACHA20_POLY1305) { in ossl_process_aead()
|
/freebsd/sys/dev/qat/include/ |
H A D | qat_ocf_utils.h | 36 if (CRYPTO_AES_NIST_GCM_16 == csp->csp_cipher_alg || in is_sep_aad_supported() 37 CRYPTO_AES_NIST_GMAC == csp->csp_cipher_alg) in is_sep_aad_supported()
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni.c | 182 switch (csp->csp_cipher_alg) { in aesni_cipher_supported() 236 switch (csp->csp_cipher_alg) { in aesni_probesession() 547 } else if (csp->csp_cipher_alg == CRYPTO_AES_CCM_16) { in aesni_cipher_setup() 554 kt = (csp->csp_cipher_alg == 0); in aesni_cipher_setup() 578 switch (csp->csp_cipher_alg) { in aesni_cipher_process() 637 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16 || in aesni_cipher_crypt() 638 csp->csp_cipher_alg == CRYPTO_AES_CCM_16) { in aesni_cipher_crypt() 686 switch (csp->csp_cipher_alg) { in aesni_cipher_crypt()
|
H A D | aesni_wrap.c | 451 switch (csp->csp_cipher_alg) { in aesni_cipher_setup_common() 459 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in aesni_cipher_setup_common() 481 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in aesni_cipher_setup_common()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.c | 339 switch (csp->csp_cipher_alg) { in ccp_cipher_supported() 355 return (ccp_aes_check_keylen(csp->csp_cipher_alg, in ccp_cipher_supported() 377 switch (csp->csp_cipher_alg) { in ccp_probesession() 433 switch (csp->csp_cipher_alg) { in ccp_newsession() 502 ccp_aes_setkey(s, csp->csp_cipher_alg, in ccp_newsession() 559 ccp_aes_setkey(s, csp->csp_cipher_alg, crp->crp_cipher_key, in ccp_process()
|
H A D | ccp_hardware.c | 1359 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) in ccp_collect_iv() 1362 if (csp->csp_cipher_alg == CRYPTO_AES_XTS && in ccp_collect_iv() 1374 if (csp->csp_cipher_alg != CRYPTO_AES_XTS) in ccp_collect_iv() 1505 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in ccp_do_blkcipher() 1526 switch (csp->csp_cipher_alg) { in ccp_do_blkcipher() 1548 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in ccp_do_blkcipher() 1555 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) { in ccp_do_blkcipher() 1611 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in ccp_do_blkcipher() 1635 if (csp->csp_cipher_alg == CRYPTO_AES_ICM) in ccp_do_blkcipher()
|
/freebsd/sys/opencrypto/ |
H A D | crypto.c | 560 switch (csp->csp_cipher_alg) { in crypto_cipher() 760 if (!alg_is_compression(csp->csp_cipher_alg)) in check_csp() 772 if (!alg_is_cipher(csp->csp_cipher_alg)) in check_csp() 776 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC) { in check_csp() 789 if (csp->csp_cipher_alg != 0 || csp->csp_cipher_klen != 0) in check_csp() 836 if (!alg_is_aead(csp->csp_cipher_alg)) in check_csp() 846 switch (csp->csp_cipher_alg) { in check_csp() 877 if (!alg_is_cipher(csp->csp_cipher_alg)) in check_csp() 879 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC) { in check_csp()
|
H A D | cryptosoft.c | 1461 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC && in swcr_cipher_supported() 1476 switch (csp->csp_cipher_alg) { in swcr_probesession() 1484 switch (csp->csp_cipher_alg) { in swcr_probesession() 1501 switch (csp->csp_cipher_alg) { in swcr_probesession() 1522 switch (csp->csp_cipher_alg) { in swcr_probesession() 1562 switch (csp->csp_cipher_alg) { in swcr_newsession() 1575 switch (csp->csp_cipher_alg) { in swcr_newsession() 1596 switch (csp->csp_cipher_alg) { in swcr_newsession() 1621 switch (csp->csp_cipher_alg) { in swcr_newsession() 1638 if (csp->csp_cipher_alg == CRYPTO_NULL_CBC) { in swcr_newsession()
|
H A D | ktls_ocf.c | 1016 csp.csp_cipher_alg = CRYPTO_AES_NIST_GCM_16; in ktls_ocf_try() 1023 recrypt_csp.csp_cipher_alg = CRYPTO_AES_ICM; in ktls_ocf_try() 1064 csp.csp_cipher_alg = CRYPTO_AES_CBC; in ktls_ocf_try() 1091 csp.csp_cipher_alg = CRYPTO_CHACHA20_POLY1305; in ktls_ocf_try()
|
H A D | cryptodev.h | 350 int csp_cipher_alg; member
|
H A D | cryptodev.c | 385 csp.csp_cipher_alg = sop->cipher; in cse_create() 973 csp->csp_cipher_alg == CRYPTO_AES_XTS && in cryptodev_aead()
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 1393 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in safexcel_set_context() 1400 if (csp->csp_cipher_alg != 0) { in safexcel_set_context() 1410 switch (csp->csp_cipher_alg) { in safexcel_set_context() 1441 alg = csp->csp_cipher_alg; in safexcel_set_context() 1484 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) { in safexcel_set_context() 1923 if (csp->csp_cipher_alg == 0 && in safexcel_set_token() 1933 switch (csp->csp_cipher_alg) { in safexcel_set_token() 2153 if (csp->csp_cipher_alg != 0) { in safexcel_create_chain_cb() 2248 switch (csp->csp_cipher_alg) { in safexcel_probe_cipher() 2302 switch (csp->csp_cipher_alg) { in safexcel_probesession() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | crypto_os.c | 272 csp.csp_cipher_alg = CRYPTO_AES_NIST_GCM_16; in freebsd_crypt_newsession() 285 csp.csp_cipher_alg = CRYPTO_AES_CCM_16; in freebsd_crypt_newsession()
|
/freebsd/sys/dev/cesa/ |
H A D | cesa.c | 796 if (csp->csp_cipher_alg == CRYPTO_AES_CBC && in cesa_create_chain() 821 if (csp->csp_cipher_alg != 0 && in cesa_create_chain() 1543 switch (csp->csp_cipher_alg) { in cesa_cipher_supported() 1628 switch (csp->csp_cipher_alg) { in cesa_newsession() 1662 if (csp->csp_cipher_alg == CRYPTO_AES_CBC) in cesa_newsession() 1727 if (csp->csp_cipher_alg != 0) in cesa_process() 1733 if (csp->csp_cipher_alg == CRYPTO_AES_CBC) in cesa_process()
|
/freebsd/sys/geom/eli/ |
H A D | g_eli_crypto.c | 71 csp.csp_cipher_alg = algo; in g_eli_crypto_cipher()
|
/freebsd/sys/crypto/via/ |
H A D | padlock.c | 142 switch (csp->csp_cipher_alg) { in padlock_probesession()
|
/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat.c | 1832 if (csp->csp_cipher_alg == CRYPTO_AES_XTS && in qat_probesession() 1842 switch (csp->csp_cipher_alg) { in qat_probesession() 1876 switch (csp->csp_cipher_alg) { in qat_probesession() 1889 switch (csp->csp_cipher_alg) { in qat_probesession() 1957 switch (csp->csp_cipher_alg) { in qat_newsession() 1981 csp->csp_cipher_alg); in qat_newsession() 2083 csp->csp_cipher_alg, csp->csp_auth_alg); in qat_newsession()
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 676 switch (csp->csp_cipher_alg) { in safe_cipher_supported() 729 if (csp->csp_cipher_alg != 0) { in safe_newsession() 811 if (csp->csp_cipher_alg != 0) { in safe_process() 815 switch (csp->csp_cipher_alg) { in safe_process()
|
/freebsd/sys/dev/wg/ |
H A D | wg_crypto.c | 269 .csp_cipher_alg = CRYPTO_CHACHA20_POLY1305, in crypto_init()
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto_aes.c | 101 csp.csp_cipher_alg = CRYPTO_AES_CBC; in aes_set_key()
|
/freebsd/sys/dev/sec/ |
H A D | sec.c | 1135 switch (csp->csp_cipher_alg) { in sec_cipher_supported() 1271 if (csp->csp_cipher_alg != 0) in sec_process() 1433 return (csp->csp_cipher_alg == CRYPTO_AES_CBC); in sec_aesu_newsession()
|
/freebsd/sys/netipsec/ |
H A D | xform_esp.c | 242 csp.csp_cipher_alg = sav->tdb_encalgxform->type; in esp_init() 243 if (csp.csp_cipher_alg != CRYPTO_NULL_CBC) { in esp_init()
|
/freebsd/sys/dev/glxsb/ |
H A D | glxsb.c | 506 switch (csp->csp_cipher_alg) { in glxsb_crypto_probesession()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 2182 switch (csp->csp_cipher_alg) { in ccr_cipher_supported() 2198 return (ccr_aes_check_keylen(csp->csp_cipher_alg, in ccr_cipher_supported() 2206 switch (csp->csp_cipher_alg) { in ccr_cipher_mode() 2240 switch (csp->csp_cipher_alg) { in ccr_probesession()
|