| /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() 1017 /* Start from ipad precompute */ in safexcel_hmac_sha1_init() 1018 memcpy(req->state, &ctx->base.ipad, SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_init() 1019 /* Already processed the key^ipad part now! */ 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() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 542 * for calculating ipad and opad in cpt_aead_init() 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() [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() 498 * 1: IPAD in sun8i_ss_hash_run() 577 /* shift all SG one slot up, to free slot 0 for IPAD */ in sun8i_ss_hash_run() 584 addr_xpad = dma_map_single(ss->dev, tfmctx->ipad, bs, DMA_TO_DEVICE); in sun8i_ss_hash_run() 587 dev_err(ss->dev, "Fail to create DMA mapping of ipad\n"); in sun8i_ss_hash_run() [all …]
|
| /linux/drivers/crypto/inside-secure/eip93/ |
| H A D | eip93-common.c | 708 u8 ipad[SHA256_BLOCK_SIZE], opad[SHA256_BLOCK_SIZE]; in eip93_hmac_setkey() local 753 ahash_request_set_crypt(req, sg, ipad, keylen); in eip93_hmac_setkey() 760 memcpy(ipad, key, keylen); in eip93_hmac_setkey() 764 memset(ipad + keylen, 0, SHA256_BLOCK_SIZE - keylen); in eip93_hmac_setkey() 765 memcpy(opad, ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey() 769 ipad[i] ^= HMAC_IPAD_VALUE; in eip93_hmac_setkey() 774 memcpy(dest_ipad, ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey() 776 /* Hash ipad */ in eip93_hmac_setkey() 777 sg_init_one(&sg[0], ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey() 783 /* Disable HASH_FINALIZE for ipad hash */ in eip93_hmac_setkey()
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | s8001-j99a.dts | 3 * Apple iPad Pro (12.9-inch) (Cellular), J99a, iPad6,8 (A1652) 14 model = "Apple iPad Pro (12.9-inch) (Cellular)";
|
| H A D | s8001-j98a.dts | 3 * Apple iPad Pro (12.9-inch) (Wi-Fi), J98a, iPad6,7 (A1584) 14 model = "Apple iPad Pro (12.9-inch) (Wi-Fi)";
|
| H A D | s8001-common.dtsi | 3 * Apple iPad Pro (9.7-inch), iPad Pro (12.9-inch)
|
| H A D | t8010-common.dtsi | 3 * Apple iPhone 7, iPhone 7 Plus, iPad 6, iPad 7, iPod touch 7
|
| H A D | t7000-handheld.dtsi | 3 * Apple iPhone 6, iPhone 6 Plus, iPad mini 4, iPod touch 6
|
| H A D | s800x-ipad5.dtsi | 3 * Apple iPad 5 common device tree
|
| H A D | t8010-ipad6.dtsi | 3 * Apple iPad 6 common device tree
|
| H A D | t8011-common.dtsi | 3 * Apple TV 4K, Apple iPad Pro 2
|
| H A D | t8011-pro2.dtsi | 3 * Apple iPad Pro 2 common device tree
|
| H A D | s5l8960x-air1.dtsi | 3 * Apple iPad Air common device tree
|
| H A D | s800-0-3-common.dtsi | 3 * Apple iPhone 6s, iPhone 6s Plus, iPad 5, iPhone SE
|
| H A D | t7000-mini4.dtsi | 3 * Apple iPad mini 4 common device tree
|
| H A D | s5l8960x-mini2.dtsi | 3 * Apple iPad mini 2 common device tree
|
| H A D | t7001-air2.dtsi | 3 * Apple iPad Air 2 common device tree
|
| /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/nitrox/ |
| H A D | nitrox_req.h | 139 * @ipad: IPAD or KEY2 for AES-XTS 144 u8 ipad[64]; member 184 * 1 - Authentication IV and KEY, microcode calculates OPAD/IPAD 185 * 0 - Authentication OPAD/IPAD
|
| /linux/drivers/crypto/ |
| H A D | atmel-sha.c | 1664 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)]; member 1733 /* Prepare ipad. */ in atmel_sha_hmac_setup() 1734 memcpy((u8 *)hmac->ipad, key, keylen); in atmel_sha_hmac_setup() 1735 memset((u8 *)hmac->ipad + keylen, 0, bs - keylen); in atmel_sha_hmac_setup() 1756 /* Prepare ipad. */ in atmel_sha_hmac_prehash_key_done() 1758 hmac->ipad[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i)); in atmel_sha_hmac_prehash_key_done() 1759 memset((u8 *)hmac->ipad + ds, 0, bs - ds); in atmel_sha_hmac_prehash_key_done() 1772 unsafe_memcpy(hmac->opad, hmac->ipad, bs, in atmel_sha_hmac_compute_ipad_hash() 1775 hmac->ipad[i] ^= 0x36363636; in atmel_sha_hmac_compute_ipad_hash() 1779 return atmel_sha_cpu_hash(dd, hmac->ipad, bs, false, in atmel_sha_hmac_compute_ipad_hash() [all …]
|
| H A D | omap-sham.c | 164 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; member 464 (u32 *)bctx->ipad, nr_dr); in omap_sham_write_ctrl_omap4() 466 (u32 *)bctx->ipad + nr_dr, nr_dr); in omap_sham_write_ctrl_omap4() 996 memcpy(ctx->buffer, bctx->ipad, bs); in omap_sham_init() 1224 * the ipad in the beginning of the buffer if we are going for in omap_sham_final_shash() 1246 * HMAC is always >= 9 because ipad == block size. in omap_sham_final() 1299 bctx->ipad); in omap_sham_setkey() 1304 memcpy(bctx->ipad, key, keylen); in omap_sham_setkey() 1307 memset(bctx->ipad + keylen, 0, bs - keylen); in omap_sham_setkey() 1310 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey() [all …]
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.h | 89 u8 ipad[64]; member
|
| /linux/Documentation/devicetree/bindings/interrupt-controller/ |
| H A D | apple,aic.yaml | 14 Apple ARM SoC platforms, including various iPhone and iPad devices and the
|