Searched refs:opad (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/crypto/
H A Dhmac.c51 char *opad = ipad + ss; hmac_setkey() local
52 struct hmac_ctx *ctx = align_ptr(opad + ss, hmac_setkey()
74 memcpy(opad, ipad, bs); hmac_setkey()
78 opad[i] ^= 0x5c; hmac_setkey()
85 crypto_shash_update(shash, opad, bs) ?: hmac_setkey()
86 crypto_shash_export(shash, opad); hmac_setkey()
129 char *opad = crypto_shash_ctx_aligned(parent) + ss; hmac_final() local
135 crypto_shash_import(desc, opad) ?: hmac_final()
146 char *opad = crypto_shash_ctx_aligned(parent) + ss; hmac_finup() local
152 crypto_shash_import(desc, opad) ?: hmac_finup()
/linux-4.1.27/drivers/crypto/caam/
H A Dkey_gen.c31 get a split ipad/opad key
/linux-4.1.27/drivers/crypto/ccp/
H A Dccp-crypto-sha.c132 rctx->cmd.u.sha.opad = ctx->u.sha.key_len ? ccp_do_sha_update()
277 ctx->u.sha.opad[i] = ctx->u.sha.key[i] ^ 0x5c; ccp_sha_setkey()
280 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); ccp_sha_setkey()
H A Dccp-crypto.h152 u8 opad[MAX_SHA_BLOCK_SIZE]; member in struct:ccp_sha_ctx
H A Dccp-ops.c1496 if (sha->final && sha->opad) { ccp_run_sha_cmd()
1533 scatterwalk_map_and_copy(hmac_buf, sha->opad, 0, block_size, 0); ccp_run_sha_cmd()
1543 hmac_cmd.u.sha.opad = NULL; ccp_run_sha_cmd()
/linux-4.1.27/drivers/crypto/
H A Dmv_cesa.c787 /* Can't see a way to extract the ipad/opad from the fallback tfm mv_hash_setkey()
798 char opad[ss]; mv_hash_setkey() local
817 memcpy(opad, ipad, bs); mv_hash_setkey()
821 opad[i] ^= 0x5c; mv_hash_setkey()
828 crypto_shash_update(shash, opad, bs) ? : mv_hash_setkey()
829 crypto_shash_export(shash, opad); mv_hash_setkey()
832 mv_hash_init_ivs(ctx, ipad, opad); mv_hash_setkey()
863 /* Allocate a hash to compute the ipad/opad of hmac. */ mv_cra_hash_init()
H A Domap-sham.c163 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED;
304 u32 *opad = (u32 *)bctx->opad; omap_sham_copy_hash_omap4() local
308 opad[i] = omap_sham_read(dd, omap_sham_copy_hash_omap4()
312 opad[i]); omap_sham_copy_hash_omap4()
959 crypto_shash_update(shash, bctx->opad, bs) ?: omap_sham_finish_hmac()
1223 memcpy(bctx->opad, bctx->ipad, bs); omap_sham_setkey()
1227 bctx->opad[i] ^= 0x5c; omap_sham_setkey()
/linux-4.1.27/drivers/crypto/qat/qat_common/
H A Dqat_algs.c165 char opad[block_size]; qat_alg_do_precomputes() local
171 memset(opad, 0, block_size); qat_alg_do_precomputes()
181 memcpy(opad, ipad, digest_size); qat_alg_do_precomputes()
184 memcpy(opad, auth_key, auth_keylen); qat_alg_do_precomputes()
189 char *opad_ptr = opad + i; qat_alg_do_precomputes()
229 if (crypto_shash_update(shash, opad, block_size)) qat_alg_do_precomputes()
259 memzero_explicit(opad, block_size); qat_alg_do_precomputes()
/linux-4.1.27/include/linux/
H A Dccp.h247 * @opad: data to be used for final HMAC operation
269 struct scatterlist *opad; member in struct:ccp_sha_engine

Completed in 208 milliseconds