Lines Matching refs:ipad
43 u8 *ipad = &tctx->pads[0]; in hmac_setkey() local
56 err = crypto_shash_digest(shash, inkey, keylen, ipad); in hmac_setkey()
62 memcpy(ipad, inkey, keylen); in hmac_setkey()
64 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey()
65 memcpy(opad, ipad, bs); in hmac_setkey()
68 ipad[i] ^= HMAC_IPAD_VALUE; in hmac_setkey()
73 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey()
74 crypto_shash_export(shash, ipad) ?: in hmac_setkey()
261 u8 *ipad = &tctx->pads[0]; in hmac_setkey_ahash() local
270 ahash_request_set_virt(req, inkey, ipad, keylen); in hmac_setkey_ahash()
277 memcpy(ipad, inkey, keylen); in hmac_setkey_ahash()
279 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey_ahash()
280 memcpy(opad, ipad, bs); in hmac_setkey_ahash()
283 ipad[i] ^= HMAC_IPAD_VALUE; in hmac_setkey_ahash()
287 ahash_request_set_virt(req, ipad, NULL, bs); in hmac_setkey_ahash()
290 crypto_ahash_export(req, ipad); in hmac_setkey_ahash()