/linux-master/arch/arm64/crypto/ |
H A D | aes-ce-setkey.h | 3 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, 5 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
|
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);
|
H A D | aes-ce-glue.c | 74 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, argument 95 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); 142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 147 return ce_aes_expandkey(ctx, in_key, key_len);
|
H A D | aes-glue.c | 137 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 142 return aes_expandkey(ctx, in_key, key_len); 146 const u8 *in_key, unsigned int key_len) 151 ret = xts_verify_key(tfm, in_key, key_len); 155 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); 157 ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], 163 const u8 *in_key, 170 ret = aes_expandkey(&ctx->key1, in_key, key_len); 174 crypto_shash_tfm_digest(ctx->hash, in_key, key_len, digest); 800 static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, argument 145 xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 162 essiv_cbc_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 817 cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) argument 841 xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) argument [all...] |
H A D | aes-neonbs-glue.c | 74 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 81 err = aes_expandkey(&rk, in_key, key_len); 133 static int aesbs_cbc_ctr_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 140 err = aes_expandkey(&rk, in_key, key_len); 251 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 258 err = xts_verify_key(tfm, in_key, key_len); 263 err = aes_expandkey(&ctx->cts, in_key, key_len); 267 err = aes_expandkey(&rk, in_key + key_len, key_len); 273 return aesbs_setkey(tfm, in_key, key_len);
|
/linux-master/include/crypto/ |
H A D | arc4.h | 20 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len);
|
/linux-master/lib/crypto/ |
H A D | arc4.c | 13 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) argument 26 j = (j + in_key[k] + a) & 0xff;
|
/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],
|
H A D | aes-neonbs-glue.c | 68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 75 err = aes_expandkey(&rk, in_key, key_len); 127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 134 err = aes_expandkey(&rk, in_key, key_len); 145 return crypto_skcipher_setkey(ctx->enc_tfm, in_key, key_len); 216 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, argument 222 err = aes_expandkey(&ctx->fallback, in_key, key_len); 293 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 299 err = xts_verify_key(tfm, in_key, key_len); 304 err = crypto_cipher_setkey(ctx->cts_tfm, in_key, key_le [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 100 ppc_expand_key_128(ctx->key_enc, in_key); 104 ppc_expand_key_192(ctx->key_enc, in_key); 108 ppc_expand_key_256(ctx->key_enc, in_key); 120 const u8 *in_key, unsigned int key_len) 122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 131 err = xts_verify_key(tfm, in_key, key_len); 140 ppc_expand_key_128(ctx->key_enc, in_key); 141 ppc_expand_key_128(ctx->key_twk, in_key 119 ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument [all...] |
/linux-master/arch/s390/crypto/ |
H A D | aes_s390.c | 72 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, argument 81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); 84 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 98 return setkey_fallback_cip(tfm, in_key, key_len); 101 memcpy(sctx->key, in_key, key_len); 201 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument 215 return setkey_fallback_skcipher(tfm, in_key, key_len); 218 memcpy(sctx->key, in_key, key_len); 297 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument 311 return setkey_fallback_skcipher(tfm, in_key, key_le 390 xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 529 ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument [all...] |
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/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);
|
H A D | camellia_glue.c | 34 extern void camellia_sparc64_key_expand(const u32 *in_key, u64 *encrypt_key, 41 const u32 *in_key = (const u32 *) _in_key; local 48 camellia_sparc64_key_expand(in_key, &ctx->encrypt_key[0], 54 const u8 *in_key, unsigned int key_len) 56 return camellia_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); 53 camellia_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument
|
/linux-master/arch/x86/crypto/ |
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
|
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
|
/linux-master/crypto/ |
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);
|
H A D | aes_ti.c | 12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 17 return aes_expandkey(ctx, in_key, key_len);
|
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 | arc4.c | 19 static int crypto_arc4_setkey(struct crypto_lskcipher *tfm, const u8 *in_key, argument 24 return arc4_setkey(ctx, in_key, key_len);
|
H A D | aria_generic.c | 27 static void aria_set_encrypt_key(struct aria_ctx *ctx, const u8 *in_key, argument 30 const __be32 *key = (const __be32 *)in_key; 174 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument 188 aria_set_encrypt_key(ctx, in_key, key_len);
|
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 | 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 | 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 | 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;
|