Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/crypto/nx/
Dnx-aes-ctr.c35 const u8 *in_key, in ctr_aes_nx_set_key() argument
61 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key()
67 const u8 *in_key, in ctr3686_aes_nx_set_key() argument
76 in_key + key_len - CTR_RFC3686_NONCE_SIZE, in ctr3686_aes_nx_set_key()
81 return ctr_aes_nx_set_key(tfm, in_key, key_len); in ctr3686_aes_nx_set_key()
Dnx-aes-ccm.c36 const u8 *in_key, in ccm_aes_nx_set_key() argument
56 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
59 memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in ccm_aes_nx_set_key()
66 const u8 *in_key, in ccm4309_aes_nx_set_key() argument
76 memcpy(nx_ctx->priv.ccm.nonce, in_key + key_len, 3); in ccm4309_aes_nx_set_key()
78 return ccm_aes_nx_set_key(tfm, in_key, key_len); in ccm4309_aes_nx_set_key()
Dnx-aes-gcm.c35 const u8 *in_key, in gcm_aes_nx_set_key() argument
65 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
68 memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in gcm_aes_nx_set_key()
74 const u8 *in_key, in gcm4106_aes_nx_set_key() argument
86 rc = gcm_aes_nx_set_key(tfm, in_key, key_len); in gcm4106_aes_nx_set_key()
90 memcpy(nonce, in_key + key_len, 4); in gcm4106_aes_nx_set_key()
Dnx-aes-ecb.c34 const u8 *in_key, in ecb_aes_nx_set_key() argument
60 memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); in ecb_aes_nx_set_key()
Dnx-aes-cbc.c34 const u8 *in_key, in cbc_aes_nx_set_key() argument
60 memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in cbc_aes_nx_set_key()
Dnx-aes-xcbc.c41 const u8 *in_key, in nx_xcbc_set_key() argument
55 memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); in nx_xcbc_set_key()
/linux-4.4.14/arch/s390/crypto/
Daes_s390.c95 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument
105 ret = crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
114 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
129 memcpy(sctx->key, in_key, key_len); in aes_set_key()
133 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key()
286 static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_aes_set_key() argument
295 return setkey_fallback_blk(tfm, in_key, key_len); in ecb_aes_set_key()
313 return aes_set_key(tfm, in_key, key_len); in ecb_aes_set_key()
415 static int cbc_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in cbc_aes_set_key() argument
424 return setkey_fallback_blk(tfm, in_key, key_len); in cbc_aes_set_key()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Daes-spe-glue.c92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument
107 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_aes_setkey()
111 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_aes_setkey()
115 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_aes_setkey()
124 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey() argument
141 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_xts_setkey()
142 ppc_expand_key_128(ctx->key_twk, in_key + AES_KEYSIZE_128); in ppc_xts_setkey()
146 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_xts_setkey()
147 ppc_expand_key_192(ctx->key_twk, in_key + AES_KEYSIZE_192); in ppc_xts_setkey()
151 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_xts_setkey()
[all …]
/linux-4.4.14/arch/arm64/crypto/
Daes-ce-setkey.h2 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key,
4 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
Daes-ce-cipher.c149 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey() argument
168 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey()
222 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument
228 ret = ce_aes_expandkey(ctx, in_key, key_len); in ce_aes_setkey()
Daes-ce-ccm-glue.c47 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in ccm_setkey() argument
53 ret = ce_aes_expandkey(ctx, in_key, key_len); in ccm_setkey()
Daes-glue.c82 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key() argument
88 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
90 ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], in xts_set_key()
/linux-4.4.14/arch/arm/crypto/
Daes_glue.c28 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
48 if (private_AES_set_encrypt_key(in_key, key_len, &ctx->enc_key) == -1) { in aes_set_key()
54 if (private_AES_set_decrypt_key(in_key, key_len, &ctx->dec_key) == -1) { in aes_set_key()
Daesbs-glue.c57 static int aesbs_cbc_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_cbc_set_key() argument
63 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc)) { in aesbs_cbc_set_key()
68 private_AES_set_decrypt_key(in_key, bits, &ctx->dec.rk); in aesbs_cbc_set_key()
73 static int aesbs_ctr_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_ctr_set_key() argument
79 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc.rk)) { in aesbs_ctr_set_key()
87 static int aesbs_xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_xts_set_key() argument
93 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc.rk)) { in aesbs_xts_set_key()
98 private_AES_set_decrypt_key(in_key, bits, &ctx->dec.rk); in aesbs_xts_set_key()
99 private_AES_set_encrypt_key(in_key + key_len / 2, bits, &ctx->twkey); in aesbs_xts_set_key()
Daes-ce-glue.c63 static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey() argument
82 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey()
130 static int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument
136 ret = ce_aes_expandkey(ctx, in_key, key_len); in ce_aes_setkey()
149 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key() argument
155 ret = ce_aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
157 ret = ce_aes_expandkey(&ctx->key2, &in_key[key_len / 2], in xts_set_key()
/linux-4.4.14/include/crypto/
Daes.h35 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
37 int crypto_aes_expand_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
/linux-4.4.14/crypto/
Dtea.c47 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey() argument
51 const __le32 *key = (const __le32 *)in_key; in tea_setkey()
120 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey() argument
124 const __le32 *key = (const __le32 *)in_key; in xtea_setkey()
Darc4.c29 static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, in arc4_set_key() argument
43 j = (j + in_key[k] + a) & 0xff; in arc4_set_key()
Dkhazad.c756 static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, in khazad_setkey() argument
760 const __be32 *key = (const __be32 *)in_key; in khazad_setkey()
Daes_generic.c1216 int crypto_aes_expand_key(struct crypto_aes_ctx *ctx, const u8 *in_key, in crypto_aes_expand_key() argument
1219 const __le32 *key = (const __le32 *)in_key; in crypto_aes_expand_key()
1282 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in crypto_aes_set_key() argument
1289 ret = crypto_aes_expand_key(ctx, in_key, key_len); in crypto_aes_set_key()
Dseed.c331 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, in seed_set_key() argument
336 const __be32 *key = (const __be32 *)in_key; in seed_set_key()
Danubis.c462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, in anubis_setkey() argument
466 const __be32 *key = (const __be32 *)in_key; in anubis_setkey()
Dcast6_generic.c114 int __cast6_setkey(struct cast6_ctx *c, const u8 *in_key, in __cast6_setkey() argument
127 memcpy(p_key, in_key, key_len); in __cast6_setkey()
Dcamellia_generic.c981 camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, in camellia_set_key() argument
985 const unsigned char *key = (const unsigned char *)in_key; in camellia_set_key()
/linux-4.4.14/arch/sparc/crypto/
Dcamellia_glue.c32 extern void camellia_sparc64_key_expand(const u32 *in_key, u64 *encrypt_key,
39 const u32 *in_key = (const u32 *) _in_key; in camellia_set_key() local
49 camellia_sparc64_key_expand(in_key, &ctx->encrypt_key[0], in camellia_set_key()
Daes_glue.c163 extern void aes_sparc64_key_expand(const u32 *in_key, u64 *output_key,
166 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
193 aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); in aes_set_key()
/linux-4.4.14/net/mac802154/
Dllsec.c903 const struct ieee802154_llsec_key_id *in_key) in llsec_update_devkey_record() argument
907 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_record()
916 next->devkey.key_id = *in_key; in llsec_update_devkey_record()
920 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_record()
934 const struct ieee802154_llsec_key_id *in_key, in llsec_update_devkey_info() argument
940 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_info()
946 int rc = llsec_update_devkey_record(dev, in_key); in llsec_update_devkey_info()
/linux-4.4.14/drivers/crypto/
Dpadlock-aes.c104 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
108 const __le32 *key = (const __le32 *)in_key; in aes_set_key()
147 if (crypto_aes_expand_key(&gen_aes, in_key, key_len)) { in aes_set_key()
/linux-4.4.14/arch/x86/crypto/
Daesni-intel_glue.c83 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
305 const u8 *in_key, unsigned int key_len) in aes_set_key_common() argument
318 err = crypto_aes_expand_key(ctx, in_key, key_len); in aes_set_key_common()
321 err = aesni_set_key(ctx, in_key, key_len); in aes_set_key_common()
328 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
331 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
Dcamellia_aesni_avx_glue.c201 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey() argument
204 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Dcamellia_aesni_avx2_glue.c197 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey() argument
200 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Dcamellia_glue.c1275 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey() argument
1278 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Daesni-intel_asm.S1806 movl 12(%esp), UKEYP # in_key