Searched refs:in_key (Results 26 - 44 of 44) sorted by relevance

12

/linux-master/arch/s390/crypto/
H A Dpaes_s390.c197 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
204 rc = _key_to_kb(&ctx->kb, in_key, key_len);
312 static int cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
319 rc = _key_to_kb(&ctx->kb, in_key, key_len);
454 static int xts_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
469 rc = _key_to_kb(&ctx->kb[0], in_key, key_len);
472 rc = _key_to_kb(&ctx->kb[1], in_key + key_len, key_len);
613 static int ctr_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
620 rc = _key_to_kb(&ctx->kb, in_key, key_len);
/linux-master/arch/arm/crypto/
H A Daes-ce-glue.c69 static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, argument
90 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32));
137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument
142 return ce_aes_expandkey(ctx, in_key, key_len);
150 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
156 ret = xts_verify_key(tfm, in_key, key_len);
160 ret = ce_aes_expandkey(&ctx->key1, in_key, key_len / 2);
162 ret = ce_aes_expandkey(&ctx->key2, &in_key[key_len / 2],
/linux-master/arch/sparc/crypto/
H A Daes_glue.c165 extern void aes_sparc64_key_expand(const u32 *in_key, u64 *output_key,
168 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
193 aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len);
199 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, argument
202 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len);
/linux-master/drivers/crypto/
H A Dpadlock-aes.c107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
111 const __le32 *key = (const __le32 *)in_key;
147 if (aes_expandkey(&gen_aes, in_key, key_len))
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, argument
165 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len);
/linux-master/net/mac802154/
H A Dllsec.c919 const struct ieee802154_llsec_key_id *in_key)
923 devkey = llsec_devkey_find(dev, in_key);
932 next->devkey.key_id = *in_key;
936 devkey = llsec_devkey_find(dev, in_key);
950 const struct ieee802154_llsec_key_id *in_key,
956 devkey = llsec_devkey_find(dev, in_key);
962 int rc = llsec_update_devkey_record(dev, in_key);
918 llsec_update_devkey_record(struct mac802154_llsec_device *dev, const struct ieee802154_llsec_key_id *in_key) argument
949 llsec_update_devkey_info(struct mac802154_llsec_device *dev, const struct ieee802154_llsec_key_id *in_key, u32 frame_counter) argument
/linux-master/crypto/
H A Dsm4.c113 * @in_key: The supplied key.
119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, argument
123 const u32 *key = (u32 *)in_key;
H A Dcast6_generic.c106 int __cast6_setkey(struct cast6_ctx *c, const u8 *in_key, unsigned int key_len) argument
116 memcpy(p_key, in_key, key_len);
H A Dseed.c327 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
332 const __be32 *key = (const __be32 *)in_key;
H A Danubis.c462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
466 const __be32 *key = (const __be32 *)in_key;
H A Dkhazad.c756 static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
760 const __be32 *key = (const __be32 *)in_key;
H A Dcamellia_generic.c960 camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
964 const unsigned char *key = (const unsigned char *)in_key;
H A Daes_generic.c1127 * @in_key: The input key.
1136 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
1141 return aes_expandkey(ctx, in_key, key_len);
/linux-master/arch/arm64/crypto/
H A Daes-ce-ccm-glue.c47 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, argument
52 return ce_aes_expandkey(ctx, in_key, key_len);
/linux-master/arch/x86/crypto/
H A Daesni-intel_glue.c90 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
232 const u8 *in_key, unsigned int key_len)
241 err = aes_expandkey(ctx, in_key, key_len);
244 err = aesni_set_key(ctx, in_key, key_len);
251 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
254 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key,
231 aes_set_key_common(struct crypto_aes_ctx *ctx, const u8 *in_key, unsigned int key_len) argument
H A Daesni-intel_asm.S1823 * int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
1831 movl (FRAME_OFFSET+12)(%esp), UKEYP # in_key
/linux-master/drivers/crypto/nx/
H A Dnx-aes-xcbc.c29 const u8 *in_key,
43 memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len);
28 nx_xcbc_set_key(struct crypto_shash *desc, const u8 *in_key, unsigned int key_len) argument
/linux-master/lib/crypto/
H A Daes.c174 * @in_key: The supplied key.
185 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, argument
199 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32));
/linux-master/include/crypto/
H A Daria.h455 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key,
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c140 u8 in_key = *key, in_key_inv = *key_inv; local
156 *key |= (in_key & 0x1) << 7;
176 in_key >>= 1;

Completed in 252 milliseconds

12