Home
last modified time | relevance | path

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

/drivers/crypto/qce/
Dsha.c86 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
89 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
342 memset(ctx->authkey, 0, sizeof(ctx->authkey)); in qce_ahash_hmac_setkey()
345 memcpy(ctx->authkey, key, keylen); in qce_ahash_hmac_setkey()
379 ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); in qce_ahash_hmac_setkey()
Dsha.h20 u8 authkey[QCE_SHA_MAX_BLOCKSIZE]; member
56 u8 *authkey; member
Dcommon.c180 qce_cpu_to_be32p_array(mackey, rctx->authkey, rctx->authklen); in qce_setup_regs_ahash()
428 u32 authkey[QCE_SHA_HMAC_KEY_SIZE / sizeof(u32)] = {0}; in qce_setup_regs_aead() local
469 authkey_words = qce_be32_to_cpu_array(authkey, ctx->auth_key, auth_keylen); in qce_setup_regs_aead()
470 qce_write_array(qce, REG_AUTH_KEY0, (u32 *)authkey, authkey_words); in qce_setup_regs_aead()
Daead.c646 memcpy(ctx->auth_key, authenc_keys.authkey, authenc_keys.authkeylen); in qce_aead_setkey()
/drivers/crypto/bcm/
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()
2333 rc = do_shash("md5", ctx->authkey, key, keylen, NULL, in ahash_hmac_setkey()
2337 rc = do_shash("sha1", ctx->authkey, key, keylen, NULL, in ahash_hmac_setkey()
2341 rc = do_shash("sha224", ctx->authkey, key, keylen, NULL, in ahash_hmac_setkey()
2345 rc = do_shash("sha256", ctx->authkey, key, keylen, NULL, in ahash_hmac_setkey()
2349 rc = do_shash("sha384", ctx->authkey, key, keylen, NULL, in ahash_hmac_setkey()
[all …]
Dcipher.h183 u8 authkey[MAX_KEY_SIZE + ARC4_STATE_SIZE]; member
/drivers/crypto/
Dixp4xx_crypto.c183 u8 authkey[MAX_KEYLEN]; member
1221 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1225 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1251 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey()
1257 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey()
1281 if (keys.authkeylen > sizeof(ctx->authkey)) in des3_aead_setkey()
1288 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in des3_aead_setkey()
Dsa2ul.h313 u8 authkey[SHA512_BLOCK_SIZE]; member
Dsa2ul.c1461 memset(ctx->authkey, 0, bs); in sa_sha_setup()
1835 cfg.akey = keys.authkey; in sa_aead_setkey()
1840 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
1854 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
Dtalitos.c905 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
945 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_des3_setkey()
Datmel-aes.c2117 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
/drivers/crypto/ccree/
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/qat/qat_common/
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/caam/
Dcaamalg_qi.c225 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
234 ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
Dcaamalg.c606 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
615 ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
Dcaamalg_qi2.c310 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1055 ret = crypto_shash_tfm_digest(hash_tfm, keys->authkey, in sec_aead_auth_set_key()
1063 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key()
/drivers/crypto/chelsio/
Dchcr_algo.c3621 err = crypto_shash_digest(shash, keys.authkey, in chcr_authenc_setkey()
3630 memcpy(o_ptr, keys.authkey, keys.authkeylen); in chcr_authenc_setkey()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c489 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()