/freebsd/sys/crypto/openssl/ |
H A D | ossl.c | 228 if (csp->csp_auth_klen == 0) { in ossl_newsession_hash() 236 csp->csp_auth_klen); in ossl_newsession_hash() 239 csp->csp_auth_klen, &s->hash.ictx); in ossl_newsession_hash() 241 csp->csp_auth_klen, &s->hash.octx); in ossl_newsession_hash() 328 csp->csp_auth_klen); in ossl_process_hash() 331 csp->csp_auth_klen, &ctx); in ossl_process_hash() 350 if (csp->csp_auth_klen != 0 && axf->Setkey == NULL) { in ossl_process_hash() 355 csp->csp_auth_klen, &ctx); in ossl_process_hash()
|
/freebsd/sys/opencrypto/ |
H A D | crypto.c | 524 switch (csp->csp_auth_klen) { in crypto_auth_hash() 541 switch (csp->csp_auth_klen) { in crypto_auth_hash() 751 csp->csp_auth_klen < 0 || csp->csp_auth_mlen < 0) in check_csp() 753 if (csp->csp_auth_key != NULL && csp->csp_auth_klen == 0) in check_csp() 767 csp->csp_auth_alg != 0 || csp->csp_auth_klen != 0 || in check_csp() 784 if (csp->csp_auth_alg != 0 || csp->csp_auth_klen != 0 || in check_csp() 819 if (csp->csp_auth_klen == 0) in check_csp() 822 if (csp->csp_auth_klen != 0) in check_csp() 843 if (csp->csp_auth_alg != 0 || csp->csp_auth_klen != 0) in check_csp() 895 if (csp->csp_auth_klen == 0) in check_csp() [all …]
|
H A D | cryptosoft.c | 261 csp->csp_auth_klen, &s.ctx); in swcr_authcompute() 265 csp->csp_auth_klen); in swcr_authcompute() 296 csp->csp_auth_klen, &s.ctx); in swcr_authcompute() 346 crypto_get_params(crp->crp_session)->csp_auth_klen); in swcr_gmac() 692 axf->Setkey(&s.ctx, crp->crp_auth_key, csp->csp_auth_klen); in swcr_ccm_cbc_mac() 1309 if (csp->csp_auth_klen == 0 || csp->csp_auth_key != NULL) { in swcr_setup_auth() 1330 csp->csp_auth_klen, swa->sw_ictx); in swcr_setup_auth() 1332 csp->csp_auth_klen, swa->sw_octx); in swcr_setup_auth() 1350 csp->csp_auth_klen); in swcr_setup_auth() 1359 if (csp->csp_auth_klen == 0) in swcr_setup_auth() [all …]
|
H A D | cryptodev.c | 382 csp.csp_auth_klen = sop->mackeylen; in cse_create() 444 if (csp.csp_auth_klen != 0) { in cse_create() 445 mackey = malloc(csp.csp_auth_klen, M_CRYPTODEV, in cse_create() 447 error = copyin(sop->mackey, mackey, csp.csp_auth_klen); in cse_create()
|
H A D | cryptodev.h | 355 int csp_auth_klen; /* Key length in bytes. */ member
|
H A D | ktls_ocf.c | 1073 mac_csp.csp_auth_klen = tls->params.auth_key_len; in ktls_ocf_try()
|
/freebsd/sys/dev/glxsb/ |
H A D | glxsb_hash.c | 126 csp->csp_auth_klen); in glxsb_hash_setup() 139 csp->csp_auth_klen); in glxsb_hash_process()
|
/freebsd/sys/crypto/blake2/ |
H A D | blake2_cryptodev.c | 201 if (!blake2_check_klen(csp, csp->csp_auth_klen)) in blake2_cipher_setup() 268 klen = csp->csp_auth_klen; in blake2_cipher_process()
|
/freebsd/sys/crypto/via/ |
H A D | padlock_hash.c | 382 csp->csp_auth_klen); in padlock_hash_setup() 398 csp->csp_auth_klen); in padlock_hash_process()
|
/freebsd/sys/dev/sec/ |
H A D | sec.c | 1164 if (csp->csp_auth_klen > SEC_MAX_KEY_LEN) in sec_auth_supported() 1224 memcpy(ses->ss_mkey, csp->csp_auth_key, csp->csp_auth_klen); in sec_newsession() 1278 memcpy(ses->ss_mkey, crp->crp_auth_key, csp->csp_auth_klen); in sec_process() 1281 memcpy(desc->sd_desc->shd_mkey, ses->ss_mkey, csp->csp_auth_klen); in sec_process() 1386 offsetof(struct sec_hw_desc, shd_mkey), csp->csp_auth_klen); in sec_build_common_s_desc() 1557 shd_mkey), csp->csp_auth_klen); in sec_mdeu_make_desc()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.c | 497 ccp_init_hmac_digest(s, csp->csp_auth_key, csp->csp_auth_klen); in ccp_newsession() 556 ccp_init_hmac_digest(s, crp->crp_auth_key, csp->csp_auth_klen); in ccp_process()
|
/freebsd/sys/dev/cesa/ |
H A D | cesa.c | 805 if (csp->csp_auth_klen != 0) { in cesa_create_chain() 1577 if (csp->csp_auth_klen > CESA_MAX_MKEY_LEN) in cesa_auth_supported() 1669 csp->csp_auth_klen); in cesa_newsession() 1739 csp->csp_auth_klen); in cesa_process()
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni.c | 544 error = aesni_authprepare(ses, csp->csp_auth_klen); in aesni_cipher_setup() 786 keylen = csp->csp_auth_klen; in aesni_cipher_mac()
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto_aes.c | 93 csp.csp_auth_klen = ks->ks_class->ec_keybits / 8; in aes_set_key()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 2451 if (csp->csp_auth_klen != 0) in ccr_newsession() 2484 csp->csp_auth_key, csp->csp_auth_klen, in ccr_newsession() 2553 csp->csp_auth_klen, s->hmac.pads); in ccr_process() 2574 csp->csp_auth_klen, s->hmac.pads); in ccr_process()
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 743 csp->csp_auth_key, csp->csp_auth_klen); in safe_newsession() 867 crp->crp_auth_key, csp->csp_auth_klen); in safe_process()
|
/freebsd/sys/netipsec/ |
H A D | xform_ah.c | 223 csp->csp_auth_klen = _KEYBITS(sav->key_auth) / 8; in ah_init0()
|
/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat.c | 1955 qs->qs_auth_klen = csp->csp_auth_klen; in qat_newsession() 2018 qs->qs_cipher_algo = qat_aes_cipher_algo(csp->csp_auth_klen); in qat_newsession()
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 1391 aklen = csp->csp_auth_klen; in safexcel_set_context() 2472 sess->alg = safexcel_aes_algid(csp->csp_auth_klen); in safexcel_newsession()
|
/freebsd/sys/dev/hifn/ |
H A D | hifn7751.c | 2281 if (csp->csp_auth_klen > HIFN_MAC_KEY_LENGTH) in hifn_auth_supported() 2479 keylen = csp->csp_auth_klen; in hifn_process()
|
/freebsd/sys/geom/eli/ |
H A D | g_eli.c | 559 csp.csp_auth_klen = G_ELI_AUTH_SECKEYLEN; in g_eli_newsession()
|