| /freebsd-14.2/sys/crypto/via/ |
| H A D | padlock_hash.c | 257 const struct auth_hash *axf; in padlock_hash_key_setup() local 259 axf = ses->ses_axf; in padlock_hash_key_setup() 284 axf = ses->ses_axf; in padlock_authcompute() 288 axf->Update, &ctx); in padlock_authcompute() 299 axf->Final(hash, &ctx); in padlock_authcompute() 302 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute() 303 axf->Final(hash, &ctx); in padlock_authcompute() 324 axf = &auth_hash_null; in padlock_hash_lookup() 328 axf = &padlock_hmac_sha1; in padlock_hash_lookup() 348 axf = NULL; in padlock_hash_lookup() [all …]
|
| /freebsd-14.2/sys/dev/glxsb/ |
| H A D | glxsb_hash.c | 53 const struct auth_hash *axf; in glxsb_hash_key_setup() local 55 axf = ses->ses_axf; in glxsb_hash_key_setup() 56 hmac_init_ipad(axf, key, klen, ses->ses_ictx); in glxsb_hash_key_setup() 67 const struct auth_hash *axf; in glxsb_authcompute() local 71 axf = ses->ses_axf; in glxsb_authcompute() 72 bcopy(ses->ses_ictx, &ctx, axf->ctxsize); in glxsb_authcompute() 74 axf->Update, &ctx); in glxsb_authcompute() 82 axf->Final(hash, &ctx); in glxsb_authcompute() 84 bcopy(ses->ses_octx, &ctx, axf->ctxsize); in glxsb_authcompute() 85 axf->Update(&ctx, hash, axf->hashsize); in glxsb_authcompute() [all …]
|
| /freebsd-14.2/sys/crypto/openssl/ |
| H A D | ossl.c | 220 struct auth_hash *axf; in ossl_newsession_hash() local 222 axf = ossl_lookup_hash(csp); in ossl_newsession_hash() 223 s->hash.axf = axf; in ossl_newsession_hash() 230 axf->Init(&s->hash.ictx); in ossl_newsession_hash() 318 struct auth_hash *axf; in ossl_process_hash() local 321 axf = s->hash.axf; in ossl_process_hash() 326 if (axf->Setkey != NULL) { in ossl_process_hash() 327 axf->Init(&ctx); in ossl_process_hash() 349 axf->Final(digest, &ctx); in ossl_process_hash() 357 axf->Update(&ctx, digest, axf->hashsize); in ossl_process_hash() [all …]
|
| H A D | ossl.h | 64 struct auth_hash *axf; member
|
| /freebsd-14.2/sys/opencrypto/ |
| H A D | cryptosoft.c | 256 axf = sw->sw_axf; in swcr_authcompute() 264 axf->Init(&s.ctx); in swcr_authcompute() 275 axf->Update, &s.ctx); in swcr_authcompute() 283 axf->Update, &s.ctx); in swcr_authcompute() 300 axf->Update(&s.ctx, s.aalg, axf->hashsize); in swcr_authcompute() 339 axf = swa->sw_axf; in swcr_gmac() 345 axf->Init(&s.ctx); in swcr_gmac() 689 axf = swa->sw_axf; in swcr_ccm_cbc_mac() 692 axf->Init(&s.ctx); in swcr_ccm_cbc_mac() 1303 swa->sw_axf = axf; in swcr_setup_auth() [all …]
|
| H A D | crypto.c | 404 if (klen > axf->blocksize) { in hmac_init_pad() 405 axf->Init(auth_ctx); in hmac_init_pad() 407 axf->Final(hmac_key, auth_ctx); in hmac_init_pad() 408 klen = axf->hashsize; in hmac_init_pad() 415 axf->Init(auth_ctx); in hmac_init_pad() 416 axf->Update(auth_ctx, hmac_key, axf->blocksize); in hmac_init_pad() 752 const struct auth_hash *axf; in check_csp() local 833 axf = crypto_auth_hash(csp); in check_csp() 834 if (axf == NULL || csp->csp_auth_mlen > axf->hashsize) in check_csp() 909 axf = crypto_auth_hash(csp); in check_csp() [all …]
|
| H A D | cryptodev.h | 650 void hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen, 652 void hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
|
| /freebsd-14.2/sys/dev/cxgbe/crypto/ |
| H A D | t4_keyctx.c | 350 t4_init_hmac_digest(const struct auth_hash *axf, u_int partial_digest_len, in t4_init_hmac_digest() argument 355 hmac_init_ipad(axf, key, klen, &auth_ctx); in t4_init_hmac_digest() 356 t4_copy_partial_hash(axf->type, &auth_ctx, dst); in t4_init_hmac_digest() 360 hmac_init_opad(axf, key, klen, &auth_ctx); in t4_init_hmac_digest() 361 t4_copy_partial_hash(axf->type, &auth_ctx, dst); in t4_init_hmac_digest() 533 const struct auth_hash *axf; in t4_tls_key_ctx() local 617 axf = &auth_hash_hmac_sha1; in t4_tls_key_ctx() 621 axf = &auth_hash_hmac_sha2_256; in t4_tls_key_ctx() 625 axf = &auth_hash_hmac_sha2_384; in t4_tls_key_ctx() 631 t4_init_hmac_digest(axf, mac_key_size, tls->params.auth_key, in t4_tls_key_ctx()
|
| H A D | t4_crypto.c | 481 const struct auth_hash *axf; in ccr_hash() local 491 axf = s->hmac.auth_hash; in ccr_hash() 511 hash_size_in_response = axf->hashsize; in ccr_hash() 515 imm_len = axf->blocksize; in ccr_hash() 555 axf->blocksize : crp->crp_payload_length); in ccr_hash() 587 htobe64(axf->blocksize << 3); in ccr_hash() 818 const struct auth_hash *axf; in ccr_eta() local 849 axf = s->hmac.auth_hash; in ccr_eta() 2051 const struct auth_hash *axf; in ccr_init_hash_digest() local 2053 axf = s->hmac.auth_hash; in ccr_init_hash_digest() [all …]
|
| /freebsd-14.2/sys/crypto/ccp/ |
| H A D | ccp.c | 235 const struct auth_hash *axf; in ccp_init_hmac_digest() local 242 axf = s->hmac.auth_hash; in ccp_init_hmac_digest() 243 if (klen > axf->blocksize) { in ccp_init_hmac_digest() 244 axf->Init(&auth_ctx); in ccp_init_hmac_digest() 245 axf->Update(&auth_ctx, key, klen); in ccp_init_hmac_digest() 246 axf->Final(s->hmac.ipad, &auth_ctx); in ccp_init_hmac_digest() 248 klen = axf->hashsize; in ccp_init_hmac_digest() 252 memset(s->hmac.ipad + klen, 0, axf->blocksize - klen); in ccp_init_hmac_digest() 253 memcpy(s->hmac.opad, s->hmac.ipad, axf->blocksize); in ccp_init_hmac_digest() 255 for (i = 0; i < axf->blocksize; i++) { in ccp_init_hmac_digest()
|
| H A D | ccp_hardware.c | 995 const struct auth_hash *axf; member 1002 .axf = &auth_hash_hmac_sha1, 1010 .axf = &auth_hash_hmac_sha2_224, 1018 .axf = &auth_hash_hmac_sha2_256, 1207 const struct auth_hash *axf; in ccp_do_hmac_done() local 1209 axf = s->hmac.auth_hash; in ccp_do_hmac_done() 1219 axf->Init(&auth_ctx); in ccp_do_hmac_done() 1220 axf->Update(&auth_ctx, s->hmac.opad, axf->blocksize); in ccp_do_hmac_done() 1226 axf->Update(&auth_ctx, ihash, axf->hashsize); in ccp_do_hmac_done() 1261 const struct auth_hash *axf; in ccp_do_hmac() local [all …]
|