| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 125 memcpy(ctx->base.ctxr->data, &ctx->base.ipad, ctx->key_sz); in safexcel_context_control() 378 u32 *ipad = ctx->base.ipad.word; in safexcel_ahash_send_req() local 381 x = ipad[i] ^ ipad[i + 4]; in safexcel_ahash_send_req() 806 memcpy(areq->result, &ctx->base.ipad, sizeof(u32)); in safexcel_ahash_final() 822 result[i] = swab32(ctx->base.ipad.word[i + 4]); in safexcel_ahash_final() 1018 memcpy(req->state, &ctx->base.ipad, SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_init() 1045 unsigned int keylen, u8 *ipad, u8 *opad) in safexcel_hmac_init_pad() argument 1053 memcpy(ipad, key, keylen); in safexcel_hmac_init_pad() 1062 ahash_request_set_crypt(areq, &sg, ipad, keylen); in safexcel_hmac_init_pad() 1076 memset(ipad + keylen, 0, blocksize - keylen); in safexcel_hmac_init_pad() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 547 ctx->ipad = kzalloc(ss, GFP_KERNEL); in cpt_aead_init() 548 if (!ctx->ipad) { in cpt_aead_init() 555 kfree(ctx->ipad); in cpt_aead_init() 564 kfree(ctx->ipad); in cpt_aead_init() 621 kfree(ctx->ipad); in otx_cpt_aead_exit() 756 u8 *ipad = NULL, *opad = NULL; in aead_hmac_init() local 792 ipad = ctx->ipad; in aead_hmac_init() 795 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 796 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init() 797 memcpy(opad, ipad, bs); in aead_hmac_init() [all …]
|
| H A D | otx_cptvf_algs.h | 115 u8 ipad[64]; member 173 u8 *ipad; member
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 67 tfmctx->ipad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 68 if (!tfmctx->ipad) in sun8i_ss_hmac_setkey() 77 memcpy(tfmctx->ipad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey() 80 tfmctx->ipad[i] ^= HMAC_IPAD_VALUE; in sun8i_ss_hmac_setkey() 91 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hmac_setkey() 137 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hash_exit_tfm() 584 addr_xpad = dma_map_single(ss->dev, tfmctx->ipad, bs, DMA_TO_DEVICE); in sun8i_ss_hash_run()
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptvf_algs.h | 106 u8 ipad[64]; member 169 u8 *ipad; member
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.h | 89 u8 ipad[64]; member
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto.h | 194 u8 ipad[MAX_SHA_BLOCK_SIZE]; member
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.h | 215 u8 ipad[MAX_HASH_BLOCK_SIZE]; member
|
| H A D | cipher.c | 2390 memcpy(ctx->ipad, ctx->authkey, ctx->authkeylen); in ahash_hmac_setkey() 2391 memset(ctx->ipad + ctx->authkeylen, 0, in ahash_hmac_setkey() 2394 unsafe_memcpy(ctx->opad, ctx->ipad, blocksize, in ahash_hmac_setkey() 2398 ctx->ipad[index] ^= HMAC_IPAD_VALUE; in ahash_hmac_setkey() 2402 flow_dump(" ipad: ", ctx->ipad, blocksize); in ahash_hmac_setkey() 2432 memcpy(rctx->hash_carry, ctx->ipad, blocksize); in ahash_hmac_init() 2492 memcpy(rctx->hash_carry, ctx->ipad, blocksize); in ahash_hmac_digest()
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_req.h | 144 u8 ipad[64]; member
|