sha1_hmac_ctx_t
kmem_free(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));
bzero(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));
kmem_free(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));
sha1_hmac_ctx_t sha1_hmac_ctx;
bcopy(ctx_template, &sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
bzero(&sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
bzero(&sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
sha1_hmac_ctx_t sha1_hmac_ctx;
bcopy(ctx_template, &sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
bzero(&sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
bzero(&sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
sha1_hmac_ctx_t *sha1_hmac_ctx_tmpl;
sha1_hmac_ctx_tmpl = kmem_alloc(sizeof (sha1_hmac_ctx_t),
*ctx_template_size = sizeof (sha1_hmac_ctx_t);
ctx_len = sizeof (sha1_hmac_ctx_t);
#define PROV_SHA1_HMAC_CTX(ctx) ((sha1_hmac_ctx_t *)(ctx)->cc_provider_private)
sha1_mac_init_ctx(sha1_hmac_ctx_t *ctx, void *keyval, uint_t length_in_bytes)
ctx->cc_provider_private = kmem_alloc(sizeof (sha1_hmac_ctx_t),
sizeof (sha1_hmac_ctx_t));
sha1_hmac_ctx_t *hmac_ctx = ctx->cc_provider_private;
bzero(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));
kmem_free(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));
kmem_free(ctx->cc_provider_private, sizeof (sha1_hmac_ctx_t));