Searched refs:hmac_ctx (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.1.9/osfmk/corecrypto/ |
| H A D | ccdrbg_nisthmac.c | 101 cchmac_di_decl(info, hmac_ctx); in update() 104 cchmac_init(info, hmac_ctx, outlen, drbg_ctx->key); in update() 106 cchmac_update(info, hmac_ctx, outlen, drbg_ctx->V); in update() 108 cchmac_update(info, hmac_ctx, sizeof(b), &b); in update() 116 cchmac_update(info, hmac_ctx, nbytes, buf); in update() 123 cchmac_final(info, hmac_ctx, drbg_ctx->key); in update() 132 cchmac_di_clear(info, hmac_ctx); in update()
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | ah.h | 70 cchmac_ctx_decl(CCSHA512_STATE_SIZE, CCSHA512_BLOCK_SIZE, hmac_ctx);
|
| H A D | ah_core.c | 291 memcpy(state->hmac_ctx, sav->sched_auth, schedlen); in ah_hmac_state_init() 328 g_crypto_funcs->cchmac_update_fn(state->digest, state->hmac_ctx, len, (void *)addr); in ah_hmac_loop() 344 g_crypto_funcs->cchmac_final_fn(state->digest, state->hmac_ctx, &digest[0]); in ah_hmac_result() 345 cchmac_di_clear(state->digest, state->hmac_ctx); in ah_hmac_result()
|
| /xnu-12377.1.9/bsd/nfs/gss/ |
| H A D | gss_krb5_mech.c | 87 struct cchmac_ctx *hmac_ctx; member 585 wctx->hmac_ctx = kalloc_data(alloc_size, Z_WAITOK | Z_ZERO); in do_hmac_init() 586 cchmac_init(cctx->di, wctx->hmac_ctx, cctx->keylen, key); in do_hmac_init() 594 cchmac_update(wctx->di, wctx->hmac_ctx, len, data); in do_hmac() 603 kfree_data(wctx->hmac_ctx, alloc_size); in do_hmac_destroy() 610 cchmac_di_decl(ctx->di, hmac_ctx); in krb5_mic() 632 cchmac_init(ctx->di, hmac_ctx, ctx->keylen, key2use); in krb5_mic() 635 cchmac_update(ctx->di, hmac_ctx, header->length, header->value); in krb5_mic() 638 cchmac_update(ctx->di, hmac_ctx, bp->length, bp->value); in krb5_mic() 641 cchmac_update(ctx->di, hmac_ctx, trailer->length, trailer->value); in krb5_mic() [all …]
|
| H A D | gss_krb5_mech.h | 345 } hmac_ctx, hmac_ctx_t[1]; typedef
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | flow_divert.c | 581 cchmac_di_decl(g_crypto_funcs->ccsha1_di, hmac_ctx); in flow_divert_packet_compute_hmac() 582 …g_crypto_funcs->cchmac_init_fn(g_crypto_funcs->ccsha1_di, hmac_ctx, group->token_key_size, group->… in flow_divert_packet_compute_hmac() 585 …g_crypto_funcs->cchmac_update_fn(g_crypto_funcs->ccsha1_di, hmac_ctx, mbuf_len(curr_mbuf), mtod(cu… in flow_divert_packet_compute_hmac() 589 g_crypto_funcs->cchmac_final_fn(g_crypto_funcs->ccsha1_di, hmac_ctx, hmac); in flow_divert_packet_compute_hmac()
|