Home
last modified time | relevance | path

Searched refs:opad (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.3-rc2/crypto/
A Dhmac.c48 char *opad = ipad + ss; in hmac_setkey() local
49 struct hmac_ctx *ctx = align_ptr(opad + ss, in hmac_setkey()
72 memcpy(opad, ipad, bs); in hmac_setkey()
76 opad[i] ^= HMAC_OPAD_VALUE; in hmac_setkey()
83 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey()
84 crypto_shash_export(shash, opad); in hmac_setkey()
122 char *opad = crypto_shash_ctx_aligned(parent) + ss; in hmac_final() local
126 crypto_shash_import(desc, opad) ?: in hmac_final()
137 char *opad = crypto_shash_ctx_aligned(parent) + ss; in hmac_finup() local
141 crypto_shash_import(desc, opad) ?: in hmac_finup()
/linux-6.3-rc2/drivers/crypto/chelsio/
A Dchcr_algo.h145 #define FILL_SEC_CPL_SCMD0_SEQNO(ctrl, seq, cmode, amode, opad, size) \ argument
154 SCMD_HMAC_CTRL_V((opad)) | \
170 #define FILL_KEY_CTX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument
175 KEY_CONTEXT_OPAD_PRESENT_V((opad)) | \
179 #define FILL_KEY_CRX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument
A Dchcr_crypto.h246 u8 opad[CHCR_HASH_MAX_BLOCK_SIZE_128]; member
A Dchcr_algo.c1618 hmacctx->opad, param->alg_prm.result_size); in create_hash_wr()
2219 memcpy(hmacctx->opad, hmacctx->ipad, bs); in chcr_ahash_setkey()
2223 *((unsigned int *)(&hmacctx->opad) + i) ^= OPAD_DATA; in chcr_ahash_setkey()
2237 err = chcr_compute_partial_hash(shash, hmacctx->opad, in chcr_ahash_setkey()
2238 hmacctx->opad, digestsize); in chcr_ahash_setkey()
2241 chcr_change_order(hmacctx->opad, updated_digestsize); in chcr_ahash_setkey()
/linux-6.3-rc2/drivers/crypto/marvell/octeontx/
A Dotx_cptvf_algs.c610 kfree(ctx->opad); in otx_cpt_aead_exit()
762 if (!ctx->opad) { in aead_hmac_init()
774 if (!opad) { in aead_hmac_init()
795 opad[icount] ^= 0x5c; in aead_hmac_init()
815 ret = copy_pad(ctx->mac_type, ctx->opad, opad); in aead_hmac_init()
820 kfree(opad); in aead_hmac_init()
827 kfree(ctx->opad); in aead_hmac_init()
828 ctx->opad = NULL; in aead_hmac_init()
830 kfree(opad); in aead_hmac_init()
993 if (ctx->opad) in create_aead_ctx_hdr()
[all …]
A Dotx_cptvf_algs.h116 u8 opad[64]; member
174 u8 *opad; member
/linux-6.3-rc2/drivers/crypto/marvell/octeontx2/
A Dotx2_cptvf_algs.c688 kfree(ctx->opad); in otx2_cpt_aead_exit()
817 if (!ctx->opad) { in aead_hmac_init()
829 if (!opad) { in aead_hmac_init()
850 opad[icount] ^= 0x5c; in aead_hmac_init()
870 ret = copy_pad(ctx->mac_type, ctx->opad, opad); in aead_hmac_init()
875 kfree(opad); in aead_hmac_init()
882 kfree(ctx->opad); in aead_hmac_init()
883 ctx->opad = NULL; in aead_hmac_init()
885 kfree(opad); in aead_hmac_init()
1043 if (ctx->opad) in create_aead_ctx_hdr()
[all …]
A Dotx2_cptvf_algs.h106 u8 opad[64]; member
165 u8 *opad; member
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-hash.c85 tfmctx->opad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey()
86 if (!tfmctx->opad) { in sun8i_ss_hmac_setkey()
93 memcpy(tfmctx->opad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey()
96 tfmctx->opad[i] ^= HMAC_OPAD_VALUE; in sun8i_ss_hmac_setkey()
104 kfree_sensitive(tfmctx->opad); in sun8i_ss_hmac_setkey()
158 kfree_sensitive(tfmctx->opad); in sun8i_ss_hash_craexit()
615 addr_xpad = dma_map_single(ss->dev, tfmctx->opad, bs, DMA_TO_DEVICE); in sun8i_ss_hash_run()
A Dsun8i-ss.h243 u8 *opad; member
/linux-6.3-rc2/drivers/crypto/inside-secure/
A Dsafexcel_hash.c207 &ctx->base.opad, req->state_sz); in safexcel_context_control()
707 &ctx->base.opad, req->state_sz)))) in safexcel_ahash_enqueue()
1047 unsigned int keylen, u8 *ipad, u8 *opad) in safexcel_hmac_init_pad() argument
1079 memcpy(opad, ipad, blocksize); in safexcel_hmac_init_pad()
1083 opad[i] ^= HMAC_OPAD_VALUE; in safexcel_hmac_init_pad()
1123 u8 *ipad, *opad; in __safexcel_hmac_setkey() local
1145 opad = ipad + blocksize; in __safexcel_hmac_setkey()
2395 &ctx->base.opad, in safexcel_sha3_fbcheck()
2778 memmove(&ctx->base.opad, in safexcel_hmac_sha3_setkey()
2793 memcpy(&ctx->base.opad, in safexcel_hmac_sha3_setkey()
[all …]
/linux-6.3-rc2/drivers/crypto/cavium/cpt/
A Dcptvf_algs.h90 u8 opad[64]; /* or OPAD */ member
/linux-6.3-rc2/drivers/crypto/marvell/cesa/
A Dhash.c1138 u8 *ipad, u8 *opad, in mv_cesa_ahmac_pad_init() argument
1172 memcpy(opad, ipad, blocksize); in mv_cesa_ahmac_pad_init()
1176 opad[i] ^= HMAC_OPAD_VALUE; in mv_cesa_ahmac_pad_init()
1190 u8 *opad; in mv_cesa_ahmac_setkey() local
1213 opad = ipad + blocksize; in mv_cesa_ahmac_setkey()
1215 ret = mv_cesa_ahmac_pad_init(req, key, keylen, ipad, opad, blocksize); in mv_cesa_ahmac_setkey()
1223 ret = mv_cesa_ahmac_iv_state_init(req, opad, ostate, blocksize); in mv_cesa_ahmac_setkey()
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dqat_algs.c80 char opad[SHA512_BLOCK_SIZE]; member
125 memset(ctx->opad, 0, block_size); in qat_alg_do_precomputes()
134 memcpy(ctx->opad, ctx->ipad, digest_size); in qat_alg_do_precomputes()
137 memcpy(ctx->opad, auth_key, auth_keylen); in qat_alg_do_precomputes()
142 char *opad_ptr = ctx->opad + i; in qat_alg_do_precomputes()
182 if (crypto_shash_update(shash, ctx->opad, block_size)) in qat_alg_do_precomputes()
215 memzero_explicit(ctx->opad, block_size); in qat_alg_do_precomputes()
/linux-6.3-rc2/drivers/crypto/ccp/
A Dccp-crypto-sha.c162 rctx->cmd.u.sha.opad = ctx->u.sha.key_len ? in ccp_do_sha_update()
303 ctx->u.sha.opad[i] = ctx->u.sha.key[i] ^ HMAC_OPAD_VALUE; in ccp_sha_setkey()
306 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey()
A Dccp-crypto.h195 u8 opad[MAX_SHA_BLOCK_SIZE]; member
/linux-6.3-rc2/drivers/crypto/
A Domap-sham.c167 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; member
311 u32 *opad = (u32 *)bctx->opad; in omap_sham_copy_hash_omap4() local
315 opad[i] = omap_sham_read(dd, in omap_sham_copy_hash_omap4()
319 opad[i]); in omap_sham_copy_hash_omap4()
1111 crypto_shash_update(shash, bctx->opad, bs) ?: in omap_sham_finish_hmac()
1310 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey()
1314 bctx->opad[i] ^= HMAC_OPAD_VALUE; in omap_sham_setkey()
A Datmel-sha.c1666 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)]; member
1773 memcpy(hmac->opad, hmac->ipad, bs); in atmel_sha_hmac_compute_ipad_hash()
1776 hmac->opad[i] ^= 0x5c5c5c5c; in atmel_sha_hmac_compute_ipad_hash()
1795 return atmel_sha_cpu_hash(dd, hmac->opad, bs, false, in atmel_sha_hmac_compute_opad_hash()
1809 hmac->opad[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i)); in atmel_sha_hmac_setup_done()
1908 atmel_sha_write(dd, SHA_REG_DIN(i), hmac->opad[i]); in atmel_sha_hmac_final()
1972 atmel_sha_write(dd, SHA_REG_DIN(i), hmac->opad[i]); in atmel_sha_hmac_digest2()
2292 atmel_sha_write(dd, SHA_REG_DIN(i), hmac->opad[i]); in atmel_sha_authenc_init2()
A Dsa2ul.c145 u16 key_sz, __be32 *ipad, __be32 *opad);
435 u16 key_sz, __be32 *ipad, __be32 *opad) in sa_prepare_iopads() argument
459 sa_export_shash(&sha, shash, digest_size, opad); in sa_prepare_iopads()
535 __be32 *opad = (void *)(sc_buf + 64); in sa_set_sc_auth() local
545 ad->prep_iopad(ad, key, key_sz, ipad, opad); in sa_set_sc_auth()
/linux-6.3-rc2/drivers/crypto/aspeed/
A Daspeed-hace.h177 u8 opad[SHA512_BLOCK_SIZE]; member
A Daspeed-hace-hash.c376 memcpy(rctx->buffer, bctx->opad, rctx->block_size); in aspeed_ahash_hmac_resume()
841 memcpy(bctx->opad, bctx->ipad, bs); in aspeed_sham_setkey()
845 bctx->opad[i] ^= HMAC_OPAD_VALUE; in aspeed_sham_setkey()
/linux-6.3-rc2/include/linux/
A Dccp.h294 struct scatterlist *opad; member
/linux-6.3-rc2/drivers/crypto/bcm/
A Dcipher.h216 u8 opad[MAX_HASH_BLOCK_SIZE]; member
A Dcipher.c907 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
911 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
915 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
919 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
923 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
927 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
2400 memcpy(ctx->opad, ctx->ipad, blocksize); in ahash_hmac_setkey()
2404 ctx->opad[index] ^= HMAC_OPAD_VALUE; in ahash_hmac_setkey()
2408 flow_dump(" opad: ", ctx->opad, blocksize); in ahash_hmac_setkey()
/linux-6.3-rc2/drivers/crypto/cavium/nitrox/
A Dnitrox_req.h147 u8 opad[64]; member

Completed in 70 milliseconds

12