/linux-master/arch/s390/crypto/ |
H A D | paes_s390.c | 197 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 D | aes-ce-glue.c | 69 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 D | aes_glue.c | 165 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 D | padlock-aes.c | 107 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 D | llsec.c | 919 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 D | sm4.c | 113 * @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 D | cast6_generic.c | 106 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 D | seed.c | 327 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 332 const __be32 *key = (const __be32 *)in_key;
|
H A D | anubis.c | 462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 466 const __be32 *key = (const __be32 *)in_key;
|
H A D | khazad.c | 756 static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 760 const __be32 *key = (const __be32 *)in_key;
|
H A D | camellia_generic.c | 960 camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 964 const unsigned char *key = (const unsigned char *)in_key;
|
H A D | aes_generic.c | 1127 * @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 D | aes-ce-ccm-glue.c | 47 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 D | aesni-intel_glue.c | 90 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 D | aesni-intel_asm.S | 1823 * 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 D | nx-aes-xcbc.c | 29 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 D | aes.c | 174 * @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 D | aria.h | 455 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key,
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 140 u8 in_key = *key, in_key_inv = *key_inv; local 156 *key |= (in_key & 0x1) << 7; 176 in_key >>= 1;
|