/freebsd/sys/crypto/blake2/ |
H A D | blake2_cryptodev.c | 204 if (csp->csp_auth_mlen < 0) in blake2_cipher_setup() 218 if (csp->csp_auth_mlen > hashlen) in blake2_cipher_setup() 221 if (csp->csp_auth_mlen == 0) in blake2_cipher_setup() 224 ses->mlen = csp->csp_auth_mlen; in blake2_cipher_setup()
|
/freebsd/sys/opencrypto/ |
H A D | crypto.c | 751 csp->csp_auth_klen < 0 || csp->csp_auth_mlen < 0) in check_csp() 768 csp->csp_auth_mlen != 0) in check_csp() 785 csp->csp_auth_mlen != 0) in check_csp() 825 if (csp->csp_auth_mlen != 0) { in check_csp() 827 if (axf == NULL || csp->csp_auth_mlen > axf->hashsize) in check_csp() 831 !ccm_tag_length_valid(csp->csp_auth_mlen)) in check_csp() 848 if (csp->csp_auth_mlen != 0 && in check_csp() 849 !ccm_tag_length_valid(csp->csp_auth_mlen)) in check_csp() 856 if (csp->csp_auth_mlen > AES_GMAC_HASH_LEN) in check_csp() 865 if (csp->csp_auth_mlen > POLY1305_HASH_LEN) in check_csp() [all …]
|
H A D | cryptosoft.c | 1303 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_auth() 1305 if (csp->csp_auth_mlen == 0) in swcr_setup_auth() 1308 swa->sw_mlen = csp->csp_auth_mlen; in swcr_setup_auth() 1395 if (csp->csp_auth_mlen == 0) in swcr_setup_aead() 1398 swa->sw_mlen = csp->csp_auth_mlen; in swcr_setup_aead()
|
H A D | cryptodev.h | 357 int csp_auth_mlen; /* Number of digest bytes to use. member
|
H A D | cryptodev.c | 479 csp.csp_auth_mlen = sop->maclen; in cse_create()
|
/freebsd/sys/crypto/openssl/ |
H A D | ossl.c | 200 if (csp->csp_auth_mlen != 0 && in ossl_probesession() 201 csp->csp_auth_mlen != GMAC_DIGEST_LEN) in ossl_probesession() 223 if (csp->csp_auth_mlen == 0) in ossl_newsession_hash() 226 s->hash.mlen = csp->csp_auth_mlen; in ossl_newsession_hash()
|
H A D | ossl_chacha20.c | 289 crypto_copyback(crp, crp->crp_digest_start, csp->csp_auth_mlen == 0 ? in ossl_chacha20_poly1305_encrypt() 290 POLY1305_HASH_LEN : csp->csp_auth_mlen, tag); in ossl_chacha20_poly1305_encrypt() 366 mlen = csp->csp_auth_mlen == 0 ? POLY1305_HASH_LEN : csp->csp_auth_mlen; in ossl_chacha20_poly1305_decrypt()
|
/freebsd/sys/dev/glxsb/ |
H A D | glxsb_hash.c | 110 if (csp->csp_auth_mlen == 0) in glxsb_hash_setup() 113 ses->ses_mlen = csp->csp_auth_mlen; in glxsb_hash_setup()
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni.c | 247 if (csp->csp_auth_mlen != 0 && in aesni_probesession() 248 csp->csp_auth_mlen != GMAC_DIGEST_LEN) in aesni_probesession() 539 if (csp->csp_auth_mlen == 0) in aesni_cipher_setup() 542 ses->mlen = csp->csp_auth_mlen; in aesni_cipher_setup() 548 if (csp->csp_auth_mlen == 0) in aesni_cipher_setup() 551 ses->mlen = csp->csp_auth_mlen; in aesni_cipher_setup()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.c | 486 if (csp->csp_auth_mlen == 0) in ccp_newsession() 489 s->gmac.hash_len = csp->csp_auth_mlen; in ccp_newsession() 493 if (csp->csp_auth_mlen == 0) in ccp_newsession() 496 s->hmac.hash_len = csp->csp_auth_mlen; in ccp_newsession()
|
/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto.c | 164 if (csp->csp_auth_mlen != 0 && in armv8_crypto_probesession() 165 csp->csp_auth_mlen != GMAC_DIGEST_LEN) in armv8_crypto_probesession()
|
/freebsd/sys/crypto/via/ |
H A D | padlock_hash.c | 366 if (csp->csp_auth_mlen == 0) in padlock_hash_setup() 369 ses->ses_mlen = csp->csp_auth_mlen; in padlock_hash_setup()
|
/freebsd/sys/dev/cesa/ |
H A D | cesa.c | 1658 cs->cs_hlen = (csp->csp_auth_mlen == 0) ? SHA1_HASH_LEN : in cesa_newsession() 1659 csp->csp_auth_mlen; in cesa_newsession() 1664 cs->cs_hlen = (csp->csp_auth_mlen == 0) ? SHA1_HASH_LEN : in cesa_newsession() 1665 csp->csp_auth_mlen; in cesa_newsession() 1672 cs->cs_hlen = (csp->csp_auth_mlen == 0) ? SHA2_256_HASH_LEN : in cesa_newsession() 1673 csp->csp_auth_mlen; in cesa_newsession()
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto_aes.c | 94 csp.csp_auth_mlen = 12; in aes_set_key()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 2462 if (csp->csp_auth_mlen == 0) in ccr_newsession() 2465 s->gmac.hash_len = csp->csp_auth_mlen; in ccr_newsession() 2469 if (csp->csp_auth_mlen == 0) in ccr_newsession() 2472 s->ccm_mac.hash_len = csp->csp_auth_mlen; in ccr_newsession() 2478 if (csp->csp_auth_mlen == 0) in ccr_newsession() 2481 s->hmac.hash_len = csp->csp_auth_mlen; in ccr_newsession()
|
/freebsd/sys/dev/sec/ |
H A D | sec.c | 1227 if (csp->csp_auth_mlen == 0) in sec_newsession() 1230 ses->ss_mlen = csp->csp_auth_mlen; in sec_newsession()
|
/freebsd/sys/netipsec/ |
H A D | xform_ah.c | 226 csp->csp_auth_mlen = AUTHSIZE(sav); in ah_init0()
|
/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat.c | 2091 if (csp->csp_auth_mlen != 0) in qat_newsession() 2092 qs->qs_auth_mlen = csp->csp_auth_mlen; in qat_newsession()
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 2506 if (csp->csp_auth_mlen != 0) in safexcel_newsession() 2507 sess->digestlen = csp->csp_auth_mlen; in safexcel_newsession()
|
/freebsd/sys/dev/hifn/ |
H A D | hifn7751.c | 2361 if (csp->csp_auth_mlen == 0) in hifn_newsession() 2364 ses->hs_mlen = csp->csp_auth_mlen; in hifn_newsession()
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 736 ses->ses_mlen = csp->csp_auth_mlen; in safe_newsession()
|