| /freebsd-13.1/sys/dev/cxgbe/crypto/ |
| H A D | t4_keyctx.c | 95 u32[i] = htobe32(auth_ctx->sha1ctx.h.b32[i]); in t4_copy_partial_hash() 100 u32[i] = htobe32(auth_ctx->sha224ctx.state[i]); in t4_copy_partial_hash() 105 u32[i] = htobe32(auth_ctx->sha256ctx.state[i]); in t4_copy_partial_hash() 110 u64[i] = htobe64(auth_ctx->sha384ctx.state[i]); in t4_copy_partial_hash() 115 u64[i] = htobe64(auth_ctx->sha512ctx.state[i]); in t4_copy_partial_hash() 124 union authctx auth_ctx; in t4_init_hmac_digest() local 126 hmac_init_ipad(axf, key, klen, &auth_ctx); in t4_init_hmac_digest() 127 t4_copy_partial_hash(axf->type, &auth_ctx, dst); in t4_init_hmac_digest() 131 hmac_init_opad(axf, key, klen, &auth_ctx); in t4_init_hmac_digest() 132 t4_copy_partial_hash(axf->type, &auth_ctx, dst); in t4_init_hmac_digest() [all …]
|
| H A D | t4_crypto.c | 1398 auth_ctx = NULL; in ccr_gcm_soft() 1417 if (auth_ctx == NULL) { in ccr_gcm_soft() 1421 axf->Init(auth_ctx); in ccr_gcm_soft() 1522 zfree(auth_ctx, M_CCR); in ccr_gcm_soft() 1958 union authctx *auth_ctx; in ccr_ccm_soft() local 1965 auth_ctx = NULL; in ccr_ccm_soft() 1991 if (auth_ctx == NULL) { in ccr_ccm_soft() 1995 axf->Init(auth_ctx); in ccr_ccm_soft() 2094 zfree(auth_ctx, M_CCR); in ccr_ccm_soft() 2352 union authctx auth_ctx; in ccr_init_hash_digest() local [all …]
|
| /freebsd-13.1/sys/crypto/openssl/ |
| H A D | ossl_chacha20.c | 149 POLY1305 auth_ctx; in ossl_chacha20_poly1305_encrypt() local 174 Poly1305_Init(&auth_ctx, block); in ossl_chacha20_poly1305_encrypt() 185 Poly1305_Update(&auth_ctx, block, in ossl_chacha20_poly1305_encrypt() 274 Poly1305_Final(&auth_ctx, tag); in ossl_chacha20_poly1305_encrypt() 278 explicit_bzero(&auth_ctx, sizeof(auth_ctx)); in ossl_chacha20_poly1305_encrypt() 295 struct poly1305_context auth_ctx; in ossl_chacha20_poly1305_decrypt() local 321 Poly1305_Init(&auth_ctx, block); in ossl_chacha20_poly1305_decrypt() 332 Poly1305_Update(&auth_ctx, block, in ossl_chacha20_poly1305_decrypt() 342 Poly1305_Update(&auth_ctx, block, in ossl_chacha20_poly1305_decrypt() 351 Poly1305_Final(&auth_ctx, tag); in ossl_chacha20_poly1305_decrypt() [all …]
|
| /freebsd-13.1/sys/dev/cesa/ |
| H A D | cesa.c | 427 union authctx auth_ctx; in cesa_set_mkey() local 438 memcpy(hin, auth_ctx.sha1ctx.h.b32, in cesa_set_mkey() 439 sizeof(auth_ctx.sha1ctx.h.b32)); in cesa_set_mkey() 441 memcpy(hout, auth_ctx.sha1ctx.h.b32, in cesa_set_mkey() 442 sizeof(auth_ctx.sha1ctx.h.b32)); in cesa_set_mkey() 446 &auth_ctx); in cesa_set_mkey() 447 memcpy(hin, auth_ctx.sha256ctx.state, in cesa_set_mkey() 448 sizeof(auth_ctx.sha256ctx.state)); in cesa_set_mkey() 450 &auth_ctx); in cesa_set_mkey() 451 memcpy(hout, auth_ctx.sha256ctx.state, in cesa_set_mkey() [all …]
|
| /freebsd-13.1/sys/crypto/ccp/ |
| H A D | ccp.c | 236 union authctx auth_ctx; in ccp_init_hmac_digest() local 246 axf->Init(&auth_ctx); in ccp_init_hmac_digest() 247 axf->Update(&auth_ctx, key, klen); in ccp_init_hmac_digest() 248 axf->Final(s->hmac.ipad, &auth_ctx); in ccp_init_hmac_digest() 249 explicit_bzero(&auth_ctx, sizeof(auth_ctx)); in ccp_init_hmac_digest()
|
| H A D | ccp_hardware.c | 1208 union authctx auth_ctx; in ccp_do_hmac_done() local 1221 axf->Init(&auth_ctx); in ccp_do_hmac_done() 1222 axf->Update(&auth_ctx, s->hmac.opad, axf->blocksize); in ccp_do_hmac_done() 1228 axf->Update(&auth_ctx, ihash, axf->hashsize); in ccp_do_hmac_done() 1229 axf->Final(s->hmac.res, &auth_ctx); in ccp_do_hmac_done() 1241 explicit_bzero(&auth_ctx, sizeof(auth_ctx)); in ccp_do_hmac_done()
|
| /freebsd-13.1/sys/opencrypto/ |
| H A D | crypto.c | 417 void *auth_ctx, uint8_t padval) in hmac_init_pad() argument 431 axf->Init(auth_ctx); in hmac_init_pad() 432 axf->Update(auth_ctx, key, klen); in hmac_init_pad() 433 axf->Final(hmac_key, auth_ctx); in hmac_init_pad() 441 axf->Init(auth_ctx); in hmac_init_pad() 442 axf->Update(auth_ctx, hmac_key, axf->blocksize); in hmac_init_pad() 448 void *auth_ctx) in hmac_init_ipad() argument 451 hmac_init_pad(axf, key, klen, auth_ctx, HMAC_IPAD_VAL); in hmac_init_ipad() 456 void *auth_ctx) in hmac_init_opad() argument 459 hmac_init_pad(axf, key, klen, auth_ctx, HMAC_OPAD_VAL); in hmac_init_opad()
|
| H A D | cryptodev.h | 706 void *auth_ctx); 708 void *auth_ctx);
|