Lines Matching refs:hmacctx

111 	return ctx->crypto_ctx->hmacctx;  in HMAC_CTX()
1566 struct hmac_ctx *hmacctx = HMAC_CTX(ctx); in create_hash_wr() local
1618 hmacctx->opad, param->alg_prm.result_size); in create_hash_wr()
2197 struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(tfm)); in chcr_ahash_setkey() local
2202 SHASH_DESC_ON_STACK(shash, hmacctx->base_hash); in chcr_ahash_setkey()
2208 shash->tfm = hmacctx->base_hash; in chcr_ahash_setkey()
2211 hmacctx->ipad); in chcr_ahash_setkey()
2216 memcpy(hmacctx->ipad, key, keylen); in chcr_ahash_setkey()
2218 memset(hmacctx->ipad + keylen, 0, bs - keylen); in chcr_ahash_setkey()
2219 memcpy(hmacctx->opad, hmacctx->ipad, bs); in chcr_ahash_setkey()
2222 *((unsigned int *)(&hmacctx->ipad) + i) ^= IPAD_DATA; in chcr_ahash_setkey()
2223 *((unsigned int *)(&hmacctx->opad) + i) ^= OPAD_DATA; in chcr_ahash_setkey()
2231 err = chcr_compute_partial_hash(shash, hmacctx->ipad, in chcr_ahash_setkey()
2232 hmacctx->ipad, digestsize); in chcr_ahash_setkey()
2235 chcr_change_order(hmacctx->ipad, updated_digestsize); in chcr_ahash_setkey()
2237 err = chcr_compute_partial_hash(shash, hmacctx->opad, in chcr_ahash_setkey()
2238 hmacctx->opad, digestsize); in chcr_ahash_setkey()
2241 chcr_change_order(hmacctx->opad, updated_digestsize); in chcr_ahash_setkey()
2317 struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(rtfm)); in chcr_hmac_init() local
2325 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2328 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2331 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2340 struct hmac_ctx *hmacctx = HMAC_CTX(ctx); in chcr_hmac_cra_init() local
2346 hmacctx->base_hash = chcr_alloc_shash(digestsize); in chcr_hmac_cra_init()
2347 if (IS_ERR(hmacctx->base_hash)) in chcr_hmac_cra_init()
2348 return PTR_ERR(hmacctx->base_hash); in chcr_hmac_cra_init()
2355 struct hmac_ctx *hmacctx = HMAC_CTX(ctx); in chcr_hmac_cra_exit() local
2357 if (hmacctx->base_hash) { in chcr_hmac_cra_exit()
2358 chcr_free_shash(hmacctx->base_hash); in chcr_hmac_cra_exit()
2359 hmacctx->base_hash = NULL; in chcr_hmac_cra_exit()