Home
last modified time | relevance | path

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

/f-stack/freebsd/crypto/blake2/
H A Dblake2_cryptodev.c283 if (csp->csp_auth_mlen < 0) in blake2_cipher_setup()
297 if (csp->csp_auth_mlen > hashlen) in blake2_cipher_setup()
300 if (csp->csp_auth_mlen == 0) in blake2_cipher_setup()
303 ses->mlen = csp->csp_auth_mlen; in blake2_cipher_setup()
/f-stack/freebsd/crypto/ccp/
H A Dccp.c380 if (csp->csp_auth_mlen < 0 || in ccp_probesession()
381 csp->csp_auth_mlen > AES_GMAC_HASH_LEN) in ccp_probesession()
490 if (csp->csp_auth_mlen == 0) in ccp_newsession()
493 s->gmac.hash_len = csp->csp_auth_mlen; in ccp_newsession()
497 if (csp->csp_auth_mlen == 0) in ccp_newsession()
500 s->hmac.hash_len = csp->csp_auth_mlen; in ccp_newsession()
/f-stack/freebsd/opencrypto/
H A Dcryptosoft.c1013 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_auth()
1015 if (csp->csp_auth_mlen == 0) in swcr_setup_auth()
1018 swa->sw_mlen = csp->csp_auth_mlen; in swcr_setup_auth()
1112 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_gcm()
1114 if (csp->csp_auth_mlen == 0) in swcr_setup_gcm()
1117 swa->sw_mlen = csp->csp_auth_mlen; in swcr_setup_gcm()
1156 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_ccm()
1158 if (csp->csp_auth_mlen == 0) in swcr_setup_ccm()
1161 swa->sw_mlen = csp->csp_auth_mlen; in swcr_setup_ccm()
H A Dcrypto.c755 csp->csp_auth_klen < 0 || csp->csp_auth_mlen < 0) in check_csp()
772 csp->csp_auth_mlen != 0) in check_csp()
789 csp->csp_auth_mlen != 0) in check_csp()
816 if (csp->csp_auth_mlen != 0) { in check_csp()
818 if (axf == NULL || csp->csp_auth_mlen > axf->hashsize) in check_csp()
840 if (csp->csp_auth_mlen > 16) in check_csp()
870 if (csp->csp_auth_mlen != 0) { in check_csp()
872 if (axf == NULL || csp->csp_auth_mlen > axf->hashsize) in check_csp()
1392 KASSERT(crp->crp_digest_start + csp->csp_auth_mlen <= len, in crp_sanity()
H A Dcryptodev.h382 int csp_auth_mlen; /* Number of digest bytes to use. member
/f-stack/freebsd/crypto/aesni/
H A Daesni.c302 if (csp->csp_auth_mlen != 0 && in aesni_probesession()
303 csp->csp_auth_mlen != GMAC_DIGEST_LEN) in aesni_probesession()
319 if (csp->csp_auth_mlen != 0 && in aesni_probesession()
320 csp->csp_auth_mlen != AES_CBC_MAC_HASH_LEN) in aesni_probesession()
603 if (csp->csp_auth_mlen == 0) in aesni_cipher_setup()
606 ses->mlen = csp->csp_auth_mlen; in aesni_cipher_setup()
/f-stack/freebsd/crypto/openssl/
H A Dossl.c181 if (csp->csp_auth_mlen == 0) in ossl_newsession()
184 s->hash.mlen = csp->csp_auth_mlen; in ossl_newsession()
/f-stack/freebsd/mips/cavium/cryptocteon/
H A Dcryptocteon.c195 ocd->octo_mlen = csp->csp_auth_mlen; in cryptocteon_newsession()
196 if (csp->csp_auth_mlen == 0) { in cryptocteon_newsession()
/f-stack/freebsd/crypto/via/
H A Dpadlock_hash.c372 if (csp->csp_auth_mlen == 0) in padlock_hash_setup()
375 ses->ses_mlen = csp->csp_auth_mlen; in padlock_hash_setup()
/f-stack/freebsd/crypto/armv8/
H A Darmv8_crypto.c222 if (csp->csp_auth_mlen != 0 && in armv8_crypto_probesession()
223 csp->csp_auth_mlen != GMAC_DIGEST_LEN) in armv8_crypto_probesession()
/f-stack/freebsd/mips/nlm/dev/sec/
H A Dnlmsec.c439 if (csp->csp_auth_mlen == 0) in xlp_sec_newsession()
442 ses->hs_mlen = csp->csp_auth_mlen; in xlp_sec_newsession()
/f-stack/freebsd/netipsec/
H A Dxform_ah.c223 csp->csp_auth_mlen = AUTHSIZE(sav); in ah_init0()