Lines Matching full:ipad
2204 /* use the key to calculate the ipad and opad. ipad will sent with the in chcr_ahash_setkey()
2206 * ipad in hmacctx->ipad and opad in hmacctx->opad location 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 unsafe_memcpy(hmacctx->opad, hmacctx->ipad, bs, in chcr_ahash_setkey()
2223 *((unsigned int *)(&hmacctx->ipad) + i) ^= IPAD_DATA; in chcr_ahash_setkey()
2232 err = chcr_compute_partial_hash(shash, hmacctx->ipad, in chcr_ahash_setkey()
2233 hmacctx->ipad, digestsize); in chcr_ahash_setkey()
2236 chcr_change_order(hmacctx->ipad, updated_digestsize); in chcr_ahash_setkey()
2326 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2329 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
2332 memcpy(req_ctx->partial_hash, hmacctx->ipad, in chcr_hmac_init()
3597 /* Copy only encryption key. We use authkey to generate h(ipad) and in chcr_authenc_setkey()
3634 /* Compute the ipad-digest*/ in chcr_authenc_setkey()
3652 /* convert the ipad and opad digest to network order */ in chcr_authenc_setkey()