sha2_hmac_ctx
sha2_hmac_ctx_t sha2_hmac_ctx;
bcopy(ctx_template, &sha2_hmac_ctx, sizeof (sha2_hmac_ctx_t));
sha2_hmac_ctx.hc_mech_type = mechanism->cm_type;
&sha2_hmac_ctx.hc_icontext,
sha2_mac_init_ctx(&sha2_hmac_ctx, digest,
sha2_mac_init_ctx(&sha2_hmac_ctx, key->ck_data,
SHA2_MAC_UPDATE(data, sha2_hmac_ctx, ret);
SHA2Final(digest, &sha2_hmac_ctx.hc_icontext);
SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest,
SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest, sha_digest_len);
SHA2Final(digest, &sha2_hmac_ctx.hc_ocontext);
mac->cd_offset, &sha2_hmac_ctx.hc_ocontext);
ret = sha2_digest_final_uio(&sha2_hmac_ctx.hc_ocontext, mac,
ret = sha2_digest_final_mblk(&sha2_hmac_ctx.hc_ocontext, mac,
bzero(&sha2_hmac_ctx, sizeof (sha2_hmac_ctx_t));
sha2_hmac_ctx_t sha2_hmac_ctx;
bcopy(ctx_template, &sha2_hmac_ctx, sizeof (sha2_hmac_ctx_t));
sha2_hmac_ctx.hc_mech_type = mechanism->cm_type;
&sha2_hmac_ctx.hc_icontext,
sha2_mac_init_ctx(&sha2_hmac_ctx, digest,
sha2_mac_init_ctx(&sha2_hmac_ctx, key->ck_data,
SHA2_MAC_UPDATE(data, sha2_hmac_ctx, ret);
SHA2Final(digest, &sha2_hmac_ctx.hc_icontext);
SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest,
SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest, sha_digest_len);
SHA2Final(digest, &sha2_hmac_ctx.hc_ocontext);
bzero(&sha2_hmac_ctx, sizeof (sha2_hmac_ctx_t));