Home
last modified time | relevance | path

Searched refs:in_key (Results 1 – 9 of 9) 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/intel/keembay/
Dkeembay-ocs-aes-core.c146 static int check_key(const u8 *in_key, size_t key_len, enum ocs_cipher cipher) in check_key() argument
148 if (!in_key) in check_key()
165 static int save_key(struct ocs_aes_tctx *tctx, const u8 *in_key, size_t key_len, in save_key() argument
170 ret = check_key(in_key, key_len, cipher); in save_key()
174 memcpy(tctx->key, in_key, key_len); in save_key()
182 static int kmb_ocs_sk_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in kmb_ocs_sk_set_key() argument
192 return save_key(tctx, in_key, key_len, cipher); in kmb_ocs_sk_set_key()
200 return crypto_sync_skcipher_setkey(tctx->sw_cipher.sk, in_key, key_len); in kmb_ocs_sk_set_key()
204 static int kmb_ocs_aead_set_key(struct crypto_aead *tfm, const u8 *in_key, in kmb_ocs_aead_set_key() argument
214 return save_key(tctx, in_key, key_len, cipher); in kmb_ocs_aead_set_key()
[all …]
/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.c140 u8 in_key = *key, in_key_inv = *key_inv; in ice_gen_key_word() local
156 *key |= (in_key & 0x1) << 7; in ice_gen_key_word()
176 in_key >>= 1; in ice_gen_key_word()