Home
last modified time | relevance | path

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

12

/freebsd/sys/crypto/armv8/
H A Darmv8_crypto.c160 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 Dossl.c135 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 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/sys/crypto/aesni/
H A Daesni.c182 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 Daesni_wrap.c451 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 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/sys/opencrypto/
H A Dcrypto.c560 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 Dcryptosoft.c1461 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 Dktls_ocf.c1016 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 Dcryptodev.h350 int csp_cipher_alg; member
H A Dcryptodev.c385 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 Dsafexcel.c1393 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 Dcrypto_os.c272 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 Dcesa.c796 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 Dg_eli_crypto.c71 csp.csp_cipher_alg = algo; in g_eli_crypto_cipher()
/freebsd/sys/crypto/via/
H A Dpadlock.c142 switch (csp->csp_cipher_alg) { in padlock_probesession()
/freebsd/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/sys/dev/safe/
H A Dsafe.c676 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 Dwg_crypto.c269 .csp_cipher_alg = CRYPTO_CHACHA20_POLY1305, in crypto_init()
/freebsd/sys/kgssapi/krb5/
H A Dkcrypto_aes.c101 csp.csp_cipher_alg = CRYPTO_AES_CBC; in aes_set_key()
/freebsd/sys/dev/sec/
H A Dsec.c1135 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 Dxform_esp.c242 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 Dglxsb.c506 switch (csp->csp_cipher_alg) { in glxsb_crypto_probesession()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c2182 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()

12