Lines Matching full:ipad
2211 /* use the key to calculate the ipad and opad. ipad will sent with the in chcr_ahash_setkey()
2213 * ipad in hmacctx->ipad and opad in hmacctx->opad location in chcr_ahash_setkey()
2218 hmacctx->ipad); in chcr_ahash_setkey()
2223 memcpy(hmacctx->ipad, key, keylen); in chcr_ahash_setkey()
2225 memset(hmacctx->ipad + keylen, 0, bs - keylen); in chcr_ahash_setkey()
2226 unsafe_memcpy(hmacctx->opad, hmacctx->ipad, bs, in chcr_ahash_setkey()
2230 *((unsigned int *)(&hmacctx->ipad) + i) ^= IPAD_DATA; in chcr_ahash_setkey()
2239 err = chcr_compute_partial_hash(shash, hmacctx->ipad, in chcr_ahash_setkey()
2240 hmacctx->ipad, digestsize); in chcr_ahash_setkey()
2243 chcr_change_order(hmacctx->ipad, updated_digestsize); in chcr_ahash_setkey()
2333 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2336 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2339 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
3604 /* Copy only encryption key. We use authkey to generate h(ipad) and in chcr_authenc_setkey()
3641 /* Compute the ipad-digest*/ in chcr_authenc_setkey()
3659 /* convert the ipad and opad digest to network order */ in chcr_authenc_setkey()