Home
last modified time | relevance | path

Searched refs:enckey (Results 1 – 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/security/keys/
Dbig_key.c60 u8 *buf, *enckey; in big_key_preparse() local
89 enckey = kmalloc(CHACHA20POLY1305_KEY_SIZE, GFP_KERNEL); in big_key_preparse()
90 if (!enckey) { in big_key_preparse()
94 ret = get_random_bytes_wait(enckey, CHACHA20POLY1305_KEY_SIZE); in big_key_preparse()
100 0, enckey); in big_key_preparse()
120 prep->payload.data[big_key_data] = enckey; in big_key_preparse()
141 kfree_sensitive(enckey); in big_key_preparse()
241 u8 *buf, *enckey = (u8 *)key->payload.data[big_key_data]; in big_key_read() local
264 enckey) ? 0 : -EBADMSG; in big_key_read()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dcommon.c292 static void qce_xtskey(struct qce_device *qce, const u8 *enckey, in qce_xtskey() argument
299 qce_cpu_to_be32p_array((__be32 *)xtskey, enckey + enckeylen / 2, in qce_xtskey()
316 __be32 enckey[QCE_MAX_CIPHER_KEY_SIZE / sizeof(__be32)] = {0}; in qce_setup_regs_skcipher() local
331 qce_cpu_to_be32p_array(enckey, ctx->enc_key, keylen); in qce_setup_regs_skcipher()
353 qce_write_array(qce, REG_ENCR_KEY0, (u32 *)enckey, enckey_words); in qce_setup_regs_skcipher()
/kernel/linux/linux-5.10/include/crypto/
Dauthenc.h23 const u8 *enckey; member
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_aead.c49 u8 *enckey; member
73 if (ctx->enckey) { in cc_aead_exit()
74 dma_free_coherent(dev, AES_MAX_KEY_SIZE, ctx->enckey, in cc_aead_exit()
79 ctx->enckey = NULL; in cc_aead_exit()
144 ctx->enckey = dma_alloc_coherent(dev, AES_MAX_KEY_SIZE, in cc_aead_init()
146 if (!ctx->enckey) { in cc_aead_init()
151 ctx->enckey); in cc_aead_init()
549 const u8 *enckey, *authkey; in cc_aead_setkey() local
563 enckey = keys.enckey; in cc_aead_setkey()
576 memcpy(ctx->ctr_nonce, enckey + ctx->enc_keylen - in cc_aead_setkey()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/
Dixp4xx_crypto.c183 u8 enckey[MAX_KEYLEN]; member
1122 ret = setup_cipher(&tfm->base, 0, ctx->enckey, ctx->enckey_len); in aead_setup()
1125 ret = setup_cipher(&tfm->base, 1, ctx->enckey, ctx->enckey_len); in aead_setup()
1161 if (keys.enckeylen > sizeof(ctx->enckey)) in aead_setkey()
1165 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in aead_setkey()
1191 err = verify_aead_des3_key(tfm, keys.enckey, keys.enckeylen); in des3_aead_setkey()
1196 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in des3_aead_setkey()
Dtalitos.c905 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_setkey()
937 err = verify_aead_des3_key(authenc, keys.enckey, keys.enckeylen); in aead_des3_setkey()
945 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_des3_setkey()
Dsa2ul.c1819 if (sa_init_sc(&ctx->enc, keys.enckey, keys.enckeylen, in sa_aead_setkey()
1833 if (sa_init_sc(&ctx->dec, keys.enckey, keys.enckeylen, in sa_aead_setkey()
Dpicoxcell_crypto.c481 memcpy(ctx->cipher_key, keys.enckey, keys.enckeylen); in spacc_aead_setkey()
Datmel-aes.c2063 memcpy(ctx->base.key, keys.enckey, keys.enckeylen); in atmel_aes_authenc_setkey()
/kernel/linux/linux-5.10/crypto/
Dauthenc.c78 keys->enckey = key + keys->authkeylen; in crypto_authenc_extractkeys()
106 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey()
Dauthencesn.c80 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
Dessiv.c113 crypto_shash_update(desc, keys.enckey, keys.enckeylen) ?: in essiv_aead_setkey()
/kernel/linux/linux-5.10/drivers/crypto/bcm/
Dcipher.c328 cipher_parms.key_buf = ctx->enckey; in handle_skcipher_req()
1306 cipher_parms.key_buf = ctx->enckey; in handle_aead_req()
1850 memcpy(ctx->enckey, key, keylen); in skcipher_setkey()
1858 memcpy(ctx->enckey, key + xts_keylen, xts_keylen); in skcipher_setkey()
1859 memcpy(ctx->enckey + xts_keylen, key, xts_keylen); in skcipher_setkey()
1874 cipher_parms.key_buf = ctx->enckey; in skcipher_setkey()
2782 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in aead_authenc_setkey()
2789 if (verify_aead_des_key(cipher, keys.enckey, keys.enckeylen)) in aead_authenc_setkey()
2795 if (verify_aead_des3_key(cipher, keys.enckey, keys.enckeylen)) in aead_authenc_setkey()
2822 flow_dump(" enc: ", ctx->enckey, ctx->enckeylen); in aead_authenc_setkey()
[all …]
Dcipher.h179 u8 enckey[MAX_KEY_SIZE + ARC4_STATE_SIZE]; member
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/
Dsafexcel_cipher.c421 ctx->nonce = *(u32 *)(keys.enckey + keys.enckeylen - in safexcel_aead_setkey()
430 err = verify_aead_des_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
435 err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
440 err = aes_expandkey(&aes, keys.enckey, keys.enckeylen); in safexcel_aead_setkey()
456 ((u32 *)keys.enckey)[i]) { in safexcel_aead_setkey()
494 ctx->key[i] = cpu_to_le32(((u32 *)keys.enckey)[i]); in safexcel_aead_setkey()
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dzcrypt_ep11misc.c930 const u8 *enckey, size_t enckeysize, in ep11_unwrapkey() argument
1011 p += asn1tag_write(p, 0x04, enckey, enckeysize); in ep11_unwrapkey()
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaamalg_qi.c226 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, in aead_setkey()
241 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
293 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
Dcaamalg.c606 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, in aead_setkey()
622 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
649 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
Dcaamalg_qi2.c308 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
338 err = crypto_des3_ede_verify_key(crypto_aead_tfm(aead), keys.enckey) ?: in des3_aead_setkey()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_algs.c273 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_enc_session()
359 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_dec_session()
/kernel/linux/linux-5.10/drivers/crypto/chelsio/
Dchcr_algo.c3586 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_authenc_setkey()
3605 memcpy(aeadctx->key, keys.enckey, keys.enckeylen); in chcr_authenc_setkey()
3705 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_aead_digest_null_setkey()
3719 memcpy(aeadctx->key, keys.enckey, keys.enckeylen); in chcr_aead_digest_null_setkey()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c851 memcpy(c_ctx->c_key, keys->enckey, keys->enckeylen); in sec_aead_aes_set_key()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0003_linux_crypto.patch774 + err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen);
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0016_linux_drivers_crypto.patch963 + memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey,
978 + memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen);
1669 + memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen);