/linux/security/keys/ |
A D | big_key.c | 60 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() 140 kfree_sensitive(enckey); in big_key_preparse() 239 u8 *buf, *enckey = (u8 *)key->payload.data[big_key_data]; in big_key_read() local 262 enckey) ? 0 : -EBADMSG; in big_key_read()
|
/linux/drivers/crypto/qce/ |
A D | common.c | 297 static void qce_xtskey(struct qce_device *qce, const u8 *enckey, in qce_xtskey() argument 303 qce_cpu_to_be32p_array((__be32 *)xtskey, enckey + enckeylen / 2, in qce_xtskey() 320 __be32 enckey[QCE_MAX_CIPHER_KEY_SIZE / sizeof(__be32)] = {0}; in qce_setup_regs_skcipher() local 335 qce_cpu_to_be32p_array(enckey, ctx->enc_key, keylen); in qce_setup_regs_skcipher() 357 qce_write_array(qce, REG_ENCR_KEY0, (u32 *)enckey, enckey_words); in qce_setup_regs_skcipher() 426 u32 enckey[QCE_MAX_CIPHER_KEY_SIZE / sizeof(u32)] = {0}; in qce_setup_regs_aead() local 444 enckey_words = qce_be32_to_cpu_array(enckey, ctx->enc_key, enc_keylen); in qce_setup_regs_aead() 445 qce_write_array(qce, REG_ENCR_KEY0, enckey, enckey_words); in qce_setup_regs_aead()
|
A D | aead.c | 612 err = verify_aead_des_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey() 616 err = verify_aead_des3_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey() 625 memcpy(_key, authenc_keys.enckey, DES3_EDE_KEY_SIZE); in qce_aead_setkey() 643 memcpy(ctx->enc_key, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
|
/linux/drivers/crypto/ccree/ |
A D | cc_aead.c | 49 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() 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() 582 enckey = key; in cc_aead_setkey() [all …]
|
/linux/include/crypto/ |
A D | authenc.h | 23 const u8 *enckey; member
|
/linux/drivers/crypto/ |
A D | ixp4xx_crypto.c | 185 u8 enckey[MAX_KEYLEN]; member 1215 ret = setup_cipher(&tfm->base, 0, ctx->enckey, ctx->enckey_len); in aead_setup() 1218 ret = setup_cipher(&tfm->base, 1, ctx->enckey, ctx->enckey_len); in aead_setup() 1254 if (keys.enckeylen > sizeof(ctx->enckey)) in aead_setkey() 1258 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in aead_setkey() 1284 err = verify_aead_des3_key(tfm, keys.enckey, keys.enckeylen); in des3_aead_setkey() 1289 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in des3_aead_setkey()
|
A D | talitos.c | 906 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_setkey() 938 err = verify_aead_des3_key(authenc, keys.enckey, keys.enckeylen); in aead_des3_setkey() 946 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_des3_setkey()
|
A D | sa2ul.c | 1839 if (sa_init_sc(&ctx->enc, ctx->dev_data->match_data, keys.enckey, in sa_aead_setkey() 1853 if (sa_init_sc(&ctx->dec, ctx->dev_data->match_data, keys.enckey, in sa_aead_setkey()
|
A D | atmel-aes.c | 2129 memcpy(ctx->base.key, keys.enckey, keys.enckeylen); in atmel_aes_authenc_setkey()
|
/linux/drivers/crypto/bcm/ |
A D | cipher.c | 329 cipher_parms.key_buf = ctx->enckey; in handle_skcipher_req() 1304 cipher_parms.key_buf = ctx->enckey; in handle_aead_req() 1848 memcpy(ctx->enckey, key, keylen); in skcipher_setkey() 1856 memcpy(ctx->enckey, key + xts_keylen, xts_keylen); in skcipher_setkey() 1857 memcpy(ctx->enckey + xts_keylen, key, xts_keylen); in skcipher_setkey() 1872 cipher_parms.key_buf = ctx->enckey; in skcipher_setkey() 2780 memcpy(ctx->enckey, keys.enckey, keys.enckeylen); in aead_authenc_setkey() 2787 if (verify_aead_des_key(cipher, keys.enckey, keys.enckeylen)) in aead_authenc_setkey() 2820 flow_dump(" enc: ", ctx->enckey, ctx->enckeylen); in aead_authenc_setkey() 2883 memcpy(ctx->enckey, key, ctx->enckeylen); in aead_gcm_ccm_setkey() [all …]
|
A D | cipher.h | 180 u8 enckey[MAX_KEY_SIZE + ARC4_STATE_SIZE]; member
|
/linux/crypto/ |
A D | authenc.c | 78 keys->enckey = key + keys->authkeylen; in crypto_authenc_extractkeys() 106 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey()
|
A D | authencesn.c | 80 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
|
A D | essiv.c | 114 crypto_shash_update(desc, keys.enckey, keys.enckeylen) ?: in essiv_aead_setkey()
|
/linux/drivers/crypto/inside-secure/ |
A D | safexcel_cipher.c | 422 ctx->nonce = *(u32 *)(keys.enckey + keys.enckeylen - in safexcel_aead_setkey() 431 err = verify_aead_des_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey() 436 err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); in safexcel_aead_setkey() 441 err = aes_expandkey(&aes, keys.enckey, keys.enckeylen); in safexcel_aead_setkey() 457 ((u32 *)keys.enckey)[i]) { in safexcel_aead_setkey() 495 ctx->key[i] = cpu_to_le32(((u32 *)keys.enckey)[i]); in safexcel_aead_setkey()
|
/linux/drivers/s390/crypto/ |
A D | zcrypt_ep11misc.c | 930 const u8 *enckey, size_t enckeysize, in ep11_unwrapkey() argument 1011 p += asn1tag_write(p, 0x04, enckey, enckeysize); in ep11_unwrapkey()
|
/linux/drivers/crypto/caam/ |
A D | caamalg_qi.c | 226 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()
|
A D | caamalg.c | 606 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()
|
A D | caamalg_qi2.c | 311 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey() 341 err = crypto_des3_ede_verify_key(crypto_aead_tfm(aead), keys.enckey) ?: in des3_aead_setkey()
|
/linux/drivers/crypto/qat/qat_common/ |
A D | qat_algs.c | 270 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_enc_session() 356 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_aead_init_dec_session()
|
/linux/drivers/crypto/chelsio/ |
A D | chcr_algo.c | 3580 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_authenc_setkey() 3599 memcpy(aeadctx->key, keys.enckey, keys.enckeylen); in chcr_authenc_setkey() 3699 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_aead_digest_null_setkey() 3713 memcpy(aeadctx->key, keys.enckey, keys.enckeylen); in chcr_aead_digest_null_setkey()
|
/linux/drivers/crypto/hisilicon/sec2/ |
A D | sec_crypto.c | 1036 memcpy(c_ctx->c_key, keys->enckey, keys->enckeylen); in sec_aead_aes_set_key()
|