Home
last modified time | relevance | path

Searched refs:csp_auth_mlen (Results 1 – 21 of 21) sorted by relevance

/freebsd/sys/crypto/blake2/
H A Dblake2_cryptodev.c204 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 Dcrypto.c751 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 Dcryptosoft.c1303 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 Dcryptodev.h357 int csp_auth_mlen; /* Number of digest bytes to use. member
H A Dcryptodev.c479 csp.csp_auth_mlen = sop->maclen; in cse_create()
/freebsd/sys/crypto/openssl/
H A Dossl.c200 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 Dossl_chacha20.c289 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 Dglxsb_hash.c110 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 Daesni.c247 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 Dccp.c486 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 Darmv8_crypto.c164 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 Dpadlock_hash.c366 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 Dcesa.c1658 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 Dkcrypto_aes.c94 csp.csp_auth_mlen = 12; in aes_set_key()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c2462 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 Dsec.c1227 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 Dxform_ah.c226 csp->csp_auth_mlen = AUTHSIZE(sav); in ah_init0()
/freebsd/sys/dev/qat_c2xxx/
H A Dqat.c2091 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 Dsafexcel.c2506 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 Dhifn7751.c2361 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 Dsafe.c736 ses->ses_mlen = csp->csp_auth_mlen; in safe_newsession()