Home
last modified time | relevance | path

Searched refs:authkey (Results 1 – 22 of 22) sorted by relevance

/drivers/crypto/qce/
A Dsha.c86 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
89 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
344 memset(ctx->authkey, 0, sizeof(ctx->authkey)); in qce_ahash_hmac_setkey()
347 memcpy(ctx->authkey, key, keylen); in qce_ahash_hmac_setkey()
381 ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); in qce_ahash_hmac_setkey()
A Dsha.h20 u8 authkey[QCE_SHA_MAX_BLOCKSIZE]; member
56 u8 *authkey; member
A Dcommon.c181 qce_cpu_to_be32p_array(mackey, rctx->authkey, rctx->authklen); in qce_setup_regs_ahash()
429 u32 authkey[QCE_SHA_HMAC_KEY_SIZE / sizeof(u32)] = {0}; in qce_setup_regs_aead() local
470 authkey_words = qce_be32_to_cpu_array(authkey, ctx->auth_key, auth_keylen); in qce_setup_regs_aead()
471 qce_write_array(qce, REG_AUTH_KEY0, (u32 *)authkey, authkey_words); in qce_setup_regs_aead()
A Daead.c646 memcpy(ctx->auth_key, authenc_keys.authkey, authenc_keys.authkeylen); in qce_aead_setkey()
/drivers/crypto/bcm/
A Dcipher.c707 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_ahash_req()
1312 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_aead_req()
1935 NULL, 0, NULL, 0, ctx->authkey, in ahash_enqueue()
2051 ret = crypto_shash_setkey(hash, ctx->authkey, in ahash_init()
2280 memcpy(ctx->authkey, key, keylen); in ahash_setkey()
2386 memcpy(ctx->authkey, key, keylen); in ahash_hmac_setkey()
2396 memcpy(ctx->ipad, ctx->authkey, ctx->authkeylen); in ahash_hmac_setkey()
2749 memset(ctx->authkey, 0, sizeof(ctx->authkey)); in aead_authenc_setkey()
2750 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_authenc_setkey()
2788 flow_dump(" auth: ", ctx->authkey, ctx->authkeylen); in aead_authenc_setkey()
[all …]
A Dcipher.h183 u8 authkey[MAX_KEY_SIZE + ARC4_STATE_SIZE]; member
/drivers/crypto/intel/ixp4xx/
A Dixp4xx_crypto.c182 u8 authkey[MAX_KEYLEN]; member
1226 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1230 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1256 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey()
1262 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey()
1286 if (keys.authkeylen > sizeof(ctx->authkey)) in des3_aead_setkey()
1293 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in des3_aead_setkey()
/drivers/crypto/
A Dsa2ul.h314 u8 authkey[SHA512_BLOCK_SIZE]; member
A Dsa2ul.c1453 memset(ctx->authkey, 0, bs); in sa_sha_setup()
1805 cfg.akey = keys.authkey; in sa_aead_setkey()
1810 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
1824 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
A Dtalitos.c905 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
945 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_des3_setkey()
A Datmel-aes.c1919 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
/drivers/crypto/ccree/
A Dcc_aead.c410 static int cc_get_plain_hmac_key(struct crypto_aead *tfm, const u8 *authkey, in cc_get_plain_hmac_key() argument
443 key = kmemdup(authkey, keylen, GFP_KERNEL); in cc_get_plain_hmac_key()
549 const u8 *enckey, *authkey; in cc_aead_setkey() local
564 authkey = keys.authkey; in cc_aead_setkey()
583 authkey = NULL; in cc_aead_setkey()
599 memcpy(ctx->auth_state.xcbc.xcbc_keys, authkey, in cc_aead_setkey()
602 rc = cc_get_plain_hmac_key(tfm, authkey, ctx->auth_keylen); in cc_aead_setkey()
/drivers/crypto/inside-secure/eip93/
A Deip93-aead.c151 ret = eip93_hmac_setkey(ctx->flags, keys.authkey, keys.authkeylen, in eip93_aead_setkey()
/drivers/crypto/intel/qat/qat_common/
A Dqat_algs.c264 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session()
351 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_dec_session()
/drivers/crypto/marvell/octeontx/
A Dotx_cptvf_algs.c761 ret = crypto_shash_digest(&ctx->sdesc->shash, keys->authkey, in aead_hmac_init()
767 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init()
/drivers/crypto/marvell/octeontx2/
A Dotx2_cptvf_algs.c850 ret = crypto_shash_digest(&ctx->sdesc->shash, keys->authkey, in aead_hmac_init()
857 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init()
/drivers/crypto/caam/
A Dcaamalg_qi.c230 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
239 ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
A Dcaamalg.c615 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
624 ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
A Dcaamalg_qi2.c313 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
/drivers/crypto/hisilicon/sec2/
A Dsec_crypto.c1354 ret = crypto_shash_tfm_digest(hash_tfm, keys->authkey, in sec_aead_auth_set_key()
1363 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key()
/drivers/crypto/chelsio/
A Dchcr_algo.c3630 err = crypto_shash_digest(shash, keys.authkey, in chcr_authenc_setkey()
3639 memcpy(o_ptr, keys.authkey, keys.authkeylen); in chcr_authenc_setkey()
/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()

Completed in 107 milliseconds