Home
last modified time | relevance | path

Searched refs:in_key (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/nx/
Dnx-aes-ctr.c23 const u8 *in_key, in ctr_aes_nx_set_key() argument
49 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key()
55 const u8 *in_key, in ctr3686_aes_nx_set_key() argument
64 in_key + key_len - CTR_RFC3686_NONCE_SIZE, in ctr3686_aes_nx_set_key()
69 return ctr_aes_nx_set_key(tfm, in_key, key_len); in ctr3686_aes_nx_set_key()
Dnx-aes-gcm.c24 const u8 *in_key, in gcm_aes_nx_set_key() argument
54 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
57 memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in gcm_aes_nx_set_key()
63 const u8 *in_key, in gcm4106_aes_nx_set_key() argument
75 rc = gcm_aes_nx_set_key(tfm, in_key, key_len); in gcm4106_aes_nx_set_key()
79 memcpy(nonce, in_key + key_len, 4); in gcm4106_aes_nx_set_key()
Dnx-aes-ccm.c24 const u8 *in_key, in ccm_aes_nx_set_key() argument
44 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
47 memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in ccm_aes_nx_set_key()
54 const u8 *in_key, in ccm4309_aes_nx_set_key() argument
64 memcpy(nx_ctx->priv.ccm.nonce, in_key + key_len, 3); in ccm4309_aes_nx_set_key()
66 return ccm_aes_nx_set_key(tfm, in_key, key_len); in ccm4309_aes_nx_set_key()
Dnx-aes-ecb.c22 const u8 *in_key, in ecb_aes_nx_set_key() argument
48 memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); in ecb_aes_nx_set_key()
Dnx-aes-cbc.c22 const u8 *in_key, in cbc_aes_nx_set_key() argument
48 memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in cbc_aes_nx_set_key()
Dnx-aes-xcbc.c29 const u8 *in_key, in nx_xcbc_set_key() argument
43 memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); in nx_xcbc_set_key()
/drivers/crypto/
Dpadlock-aes.c107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
111 const __le32 *key = (const __le32 *)in_key; in aes_set_key()
147 if (aes_expandkey(&gen_aes, in_key, key_len)) in aes_set_key()
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher() argument
165 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in aes_set_key_skcipher()
/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c554 u8 in_key = *key, in_key_inv = *key_inv; in ice_gen_key_word() local
570 *key |= (in_key & 0x1) << 7; in ice_gen_key_word()
590 in_key >>= 1; in ice_gen_key_word()