Lines Matching refs:ctx
188 soft_hmac_ctx_t *ctx, CK_MECHANISM_TYPE mech)
215 SOFT_MAC_INIT_CTX(MD5, &(ctx->hc_ctx_u.md5_ctx),
255 md5_hmac_ctx_init(&ctx->hc_ctx_u.md5_ctx, md5_ipad, md5_opad);
281 SOFT_MAC_INIT_CTX(SHA1, &(ctx->hc_ctx_u.sha1_ctx),
321 sha1_hmac_ctx_init(&ctx->hc_ctx_u.sha1_ctx, sha1_ipad,
361 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx,
402 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx,
443 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx,
670 sha2_hmac_ctx_init(uint_t mech, sha2_hc_ctx_t *ctx, uint64_t *ipad,
682 SHA2Init(mech, &ctx->hc_icontext);
683 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size);
686 SHA2Init(mech, &ctx->hc_ocontext);
687 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size);