Home
last modified time | relevance | path

Searched refs:csp_cipher_alg (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14.2/sys/crypto/armv8/
H A Darmv8_crypto.c161 switch (csp->csp_cipher_alg) { in armv8_crypto_probesession()
182 switch (csp->csp_cipher_alg) { in armv8_crypto_probesession()
222 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in armv8_crypto_cipher_setup()
239 if ((csp->csp_cipher_alg == CRYPTO_AES_XTS) || in armv8_crypto_cipher_setup()
240 (csp->csp_cipher_alg == CRYPTO_AES_CBC)) in armv8_crypto_cipher_setup()
244 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in armv8_crypto_cipher_setup()
247 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) { in armv8_crypto_cipher_setup()
321 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) { in armv8_crypto_cipher_process()
349 switch (csp->csp_cipher_alg) { in armv8_crypto_cipher_process()
/freebsd-14.2/sys/dev/qat/include/
H A Dqat_ocf_utils.h36 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-14.2/sys/crypto/openssl/
H A Dossl.c136 switch (csp->csp_cipher_alg) { in ossl_lookup_cipher()
180 if (csp->csp_cipher_alg != CRYPTO_CHACHA20 && !sc->has_aes) in ossl_probesession()
187 csp->csp_cipher_alg == CRYPTO_CHACHA20 || in ossl_probesession()
193 switch (csp->csp_cipher_alg) { in ossl_probesession()
302 if (csp->csp_cipher_alg != CRYPTO_CHACHA20_POLY1305) in ossl_newsession()
410 if (csp->csp_cipher_alg == CRYPTO_CHACHA20_POLY1305) { in ossl_process_aead()
/freebsd-14.2/sys/crypto/aesni/
H A Daesni.c183 switch (csp->csp_cipher_alg) { in aesni_cipher_supported()
237 switch (csp->csp_cipher_alg) { in aesni_probesession()
548 } else if (csp->csp_cipher_alg == CRYPTO_AES_CCM_16) { in aesni_cipher_setup()
555 kt = (csp->csp_cipher_alg == 0); in aesni_cipher_setup()
579 switch (csp->csp_cipher_alg) { in aesni_cipher_process()
638 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16 || in aesni_cipher_crypt()
639 csp->csp_cipher_alg == CRYPTO_AES_CCM_16) { in aesni_cipher_crypt()
687 switch (csp->csp_cipher_alg) { in aesni_cipher_crypt()
H A Daesni_wrap.c452 switch (csp->csp_cipher_alg) { in aesni_cipher_setup_common()
460 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in aesni_cipher_setup_common()
482 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in aesni_cipher_setup_common()
/freebsd-14.2/sys/crypto/ccp/
H A Dccp.c339 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 Dccp_hardware.c1359 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-14.2/sys/opencrypto/
H A Dcrypto.c567 switch (csp->csp_cipher_alg) { in crypto_cipher()
767 if (!alg_is_compression(csp->csp_cipher_alg)) in check_csp()
779 if (!alg_is_cipher(csp->csp_cipher_alg)) in check_csp()
783 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC) { in check_csp()
796 if (csp->csp_cipher_alg != 0 || csp->csp_cipher_klen != 0) in check_csp()
843 if (!alg_is_aead(csp->csp_cipher_alg)) in check_csp()
853 switch (csp->csp_cipher_alg) { in check_csp()
884 if (!alg_is_cipher(csp->csp_cipher_alg)) in check_csp()
886 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC) { in check_csp()
H A Dcryptosoft.c1462 if (csp->csp_cipher_alg != CRYPTO_NULL_CBC && in swcr_cipher_supported()
1477 switch (csp->csp_cipher_alg) { in swcr_probesession()
1485 switch (csp->csp_cipher_alg) { in swcr_probesession()
1502 switch (csp->csp_cipher_alg) { in swcr_probesession()
1523 switch (csp->csp_cipher_alg) { in swcr_probesession()
1563 switch (csp->csp_cipher_alg) { in swcr_newsession()
1576 switch (csp->csp_cipher_alg) { in swcr_newsession()
1597 switch (csp->csp_cipher_alg) { in swcr_newsession()
1622 switch (csp->csp_cipher_alg) { in swcr_newsession()
1639 if (csp->csp_cipher_alg == CRYPTO_NULL_CBC) { in swcr_newsession()
H A Dktls_ocf.c1017 csp.csp_cipher_alg = CRYPTO_AES_NIST_GCM_16; in ktls_ocf_try()
1024 recrypt_csp.csp_cipher_alg = CRYPTO_AES_ICM; in ktls_ocf_try()
1065 csp.csp_cipher_alg = CRYPTO_AES_CBC; in ktls_ocf_try()
1092 csp.csp_cipher_alg = CRYPTO_CHACHA20_POLY1305; in ktls_ocf_try()
H A Dcryptodev.h350 int csp_cipher_alg; member
/freebsd-14.2/sys/dev/qat/qat/
H A Dqat_ocf.c161 switch (csp->csp_cipher_alg) { in qat_ocf_probesession()
195 switch (csp->csp_cipher_alg) { in qat_ocf_probesession()
210 switch (csp->csp_cipher_alg) { in qat_ocf_probesession()
293 if (csp->csp_cipher_alg) { in qat_ocf_session_init()
296 switch (csp->csp_cipher_alg) { in qat_ocf_session_init()
320 csp->csp_cipher_alg); in qat_ocf_session_init()
499 csp->csp_cipher_alg, in qat_ocf_session_init()
/freebsd-14.2/sys/dev/safexcel/
H A Dsafexcel.c1394 if (csp->csp_cipher_alg == CRYPTO_AES_XTS) in safexcel_set_context()
1401 if (csp->csp_cipher_alg != 0) { in safexcel_set_context()
1411 switch (csp->csp_cipher_alg) { in safexcel_set_context()
1442 alg = csp->csp_cipher_alg; in safexcel_set_context()
1924 if (csp->csp_cipher_alg == 0 && in safexcel_set_token()
1934 switch (csp->csp_cipher_alg) { in safexcel_set_token()
2154 if (csp->csp_cipher_alg != 0) { in safexcel_create_chain_cb()
2249 switch (csp->csp_cipher_alg) { in safexcel_probe_cipher()
2303 switch (csp->csp_cipher_alg) { in safexcel_probesession()
2314 switch (csp->csp_cipher_alg) { in safexcel_probesession()
[all …]
/freebsd-14.2/sys/dev/cesa/
H A Dcesa.c797 if (csp->csp_cipher_alg == CRYPTO_AES_CBC && in cesa_create_chain()
822 if (csp->csp_cipher_alg != 0 && in cesa_create_chain()
1564 switch (csp->csp_cipher_alg) { in cesa_cipher_supported()
1649 switch (csp->csp_cipher_alg) { in cesa_newsession()
1683 if (csp->csp_cipher_alg == CRYPTO_AES_CBC) in cesa_newsession()
1748 if (csp->csp_cipher_alg != 0) in cesa_process()
1754 if (csp->csp_cipher_alg == CRYPTO_AES_CBC) in cesa_process()
/freebsd-14.2/sys/geom/eli/
H A Dg_eli_crypto.c72 csp.csp_cipher_alg = algo; in g_eli_crypto_cipher()
/freebsd-14.2/sys/crypto/via/
H A Dpadlock.c143 switch (csp->csp_cipher_alg) { in padlock_probesession()
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dcrypto_os.c282 csp.csp_cipher_alg = CRYPTO_AES_NIST_GCM_16; in freebsd_crypt_newsession()
295 csp.csp_cipher_alg = CRYPTO_AES_CCM_16; in freebsd_crypt_newsession()
/freebsd-14.2/sys/dev/qat_c2xxx/
H A Dqat.c1832 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-14.2/sys/dev/safe/
H A Dsafe.c677 switch (csp->csp_cipher_alg) { in safe_cipher_supported()
730 if (csp->csp_cipher_alg != 0) { in safe_newsession()
812 if (csp->csp_cipher_alg != 0) { in safe_process()
816 switch (csp->csp_cipher_alg) { in safe_process()
/freebsd-14.2/sys/dev/wg/
H A Dwg_crypto.c269 .csp_cipher_alg = CRYPTO_CHACHA20_POLY1305, in crypto_init()
/freebsd-14.2/sys/kgssapi/krb5/
H A Dkcrypto_aes.c102 csp.csp_cipher_alg = CRYPTO_AES_CBC; in aes_set_key()
/freebsd-14.2/sys/dev/sec/
H A Dsec.c1136 switch (csp->csp_cipher_alg) { in sec_cipher_supported()
1272 if (csp->csp_cipher_alg != 0) in sec_process()
1434 return (csp->csp_cipher_alg == CRYPTO_AES_CBC); in sec_aesu_newsession()
/freebsd-14.2/sys/netipsec/
H A Dxform_esp.c243 csp.csp_cipher_alg = sav->tdb_encalgxform->type; in esp_init()
244 if (csp.csp_cipher_alg != CRYPTO_NULL_CBC) { in esp_init()
/freebsd-14.2/sys/dev/glxsb/
H A Dglxsb.c507 switch (csp->csp_cipher_alg) { in glxsb_crypto_probesession()
/freebsd-14.2/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c2183 switch (csp->csp_cipher_alg) { in ccr_cipher_supported()
2199 return (ccr_aes_check_keylen(csp->csp_cipher_alg, in ccr_cipher_supported()
2207 switch (csp->csp_cipher_alg) { in ccr_cipher_mode()
2241 switch (csp->csp_cipher_alg) { in ccr_probesession()

12