Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 20 of 20) sorted by relevance

/arch/x86/crypto/
Daes_ctrby8_avx-x86_64.S155 .macro do_aes b, k, key_len argument
158 .set klen, \key_len
426 .macro do_aes_load val, key_len argument
427 do_aes \val, 1, \key_len
430 .macro do_aes_noload val, key_len argument
431 do_aes \val, 0, \key_len
436 .macro do_aes_ctrmain key_len argument
438 jb .Ldo_return2\key_len
446 jz .Lmult_of_8_blks\key_len
450 jg .Lgt4\key_len
[all …]
Daesni-intel_glue.c76 unsigned int key_len);
304 const u8 *in_key, unsigned int key_len) in aes_set_key_common() argument
310 if (key_len != AES_KEYSIZE_128 && key_len != AES_KEYSIZE_192 && in aes_set_key_common()
311 key_len != AES_KEYSIZE_256) { in aes_set_key_common()
317 err = crypto_aes_expand_key(ctx, in_key, key_len); in aes_set_key_common()
320 err = aesni_set_key(ctx, in_key, key_len); in aes_set_key_common()
328 unsigned int key_len) in aes_set_key() argument
330 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
650 rfc4106_set_hash_subkey(u8 *hash_subkey, const u8 *key, unsigned int key_len) in rfc4106_set_hash_subkey() argument
659 ret = crypto_cipher_setkey(tfm, key, key_len); in rfc4106_set_hash_subkey()
[all …]
Dcamellia_glue.c1250 unsigned int key_len, u32 *flags) in __camellia_setkey() argument
1252 if (key_len != 16 && key_len != 24 && key_len != 32) { in __camellia_setkey()
1257 cctx->key_length = key_len; in __camellia_setkey()
1259 switch (key_len) { in __camellia_setkey()
1276 unsigned int key_len) in camellia_setkey() argument
1278 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Dcamellia_aesni_avx2_glue.c198 unsigned int key_len) in camellia_setkey() argument
200 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Dcamellia_aesni_avx_glue.c202 unsigned int key_len) in camellia_setkey() argument
204 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Daesni-intel_asm.S1875 movl (FRAME_OFFSET+16)(%esp), %edx # key_len
/arch/s390/crypto/
Daes_s390.c42 int key_len; member
53 int key_len; member
59 unsigned int key_len) in setkey_fallback_cip() argument
68 ret = crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
78 unsigned int key_len) in aes_set_key() argument
84 fc = (key_len == 16) ? CPACF_KM_AES_128 : in aes_set_key()
85 (key_len == 24) ? CPACF_KM_AES_192 : in aes_set_key()
86 (key_len == 32) ? CPACF_KM_AES_256 : 0; in aes_set_key()
91 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key()
93 sctx->key_len = key_len; in aes_set_key()
[all …]
Dpaes_s390.c83 unsigned int key_len) in ecb_paes_set_key() argument
87 if (key_len != SECKEYBLOBSIZE) in ecb_paes_set_key()
182 unsigned int key_len) in cbc_paes_set_key() argument
290 unsigned int key_len) in xts_paes_set_key() argument
423 unsigned int key_len) in ctr_paes_set_key() argument
427 memcpy(ctx->sk.seckey, in_key, key_len); in ctr_paes_set_key()
Ddes_s390.c39 unsigned int key_len) in des_setkey() argument
51 memcpy(ctx->key, key, key_len); in des_setkey()
229 unsigned int key_len) in des3_setkey() argument
251 memcpy(ctx->key, key, key_len); in des3_setkey()
/arch/sparc/crypto/
Dcamellia_glue.c29 int key_len; member
33 unsigned int key_len, u64 *decrypt_key);
36 unsigned int key_len) in camellia_set_key() argument
42 if (key_len != 16 && key_len != 24 && key_len != 32) { in camellia_set_key()
47 ctx->key_len = key_len; in camellia_set_key()
50 key_len, &ctx->decrypt_key[0]); in camellia_set_key()
55 u32 *output, unsigned int key_len);
63 (u32 *) dst, ctx->key_len); in camellia_encrypt()
72 (u32 *) dst, ctx->key_len); in camellia_decrypt()
75 extern void camellia_sparc64_load_keys(const u64 *key, unsigned int key_len);
[all …]
Daes_glue.c164 unsigned int key_len);
167 unsigned int key_len) in aes_set_key() argument
172 switch (key_len) { in aes_set_key()
193 aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); in aes_set_key()
194 ctx->key_length = key_len; in aes_set_key()
/arch/arm64/crypto/
Daes-ce-glue.c80 unsigned int key_len) in ce_aes_expandkey() argument
89 u32 kwords = key_len / sizeof(u32); in ce_aes_expandkey()
93 if (key_len != AES_KEYSIZE_128 && in ce_aes_expandkey()
94 key_len != AES_KEYSIZE_192 && in ce_aes_expandkey()
95 key_len != AES_KEYSIZE_256) in ce_aes_expandkey()
98 ctx->key_length = key_len; in ce_aes_expandkey()
112 if (key_len == AES_KEYSIZE_192) { in ce_aes_expandkey()
117 } else if (key_len == AES_KEYSIZE_256) { in ce_aes_expandkey()
148 unsigned int key_len) in ce_aes_setkey() argument
153 ret = ce_aes_expandkey(ctx, in_key, key_len); in ce_aes_setkey()
Daes-ce-setkey.h4 unsigned int key_len);
6 unsigned int key_len);
Daes-neonbs-glue.c75 unsigned int key_len) in aesbs_setkey() argument
81 err = crypto_aes_expand_key(&rk, in_key, key_len); in aesbs_setkey()
85 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
134 unsigned int key_len) in aesbs_cbc_setkey() argument
140 err = crypto_aes_expand_key(&rk, in_key, key_len); in aesbs_cbc_setkey()
144 ctx->key.rounds = 6 + key_len / 4; in aesbs_cbc_setkey()
208 unsigned int key_len) in aesbs_ctr_setkey_sync() argument
213 err = crypto_aes_expand_key(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync()
217 ctx->key.rounds = 6 + key_len / 4; in aesbs_ctr_setkey_sync()
269 unsigned int key_len) in aesbs_xts_setkey() argument
[all …]
Daes-glue.c106 unsigned int key_len) in skcipher_aes_setkey() argument
108 return aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); in skcipher_aes_setkey()
112 unsigned int key_len) in xts_set_key() argument
117 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key()
121 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
123 ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], in xts_set_key()
124 key_len / 2); in xts_set_key()
392 unsigned int key_len) in cbcmac_setkey() argument
397 err = aes_expandkey(&ctx->key, in_key, key_len); in cbcmac_setkey()
414 unsigned int key_len) in cmac_setkey() argument
[all …]
Daes-ce-ccm-glue.c51 unsigned int key_len) in ccm_setkey() argument
56 ret = ce_aes_expandkey(ctx, in_key, key_len); in ccm_setkey()
/arch/arm/crypto/
Daes-ce-glue.c66 unsigned int key_len) in ce_aes_expandkey() argument
75 u32 kwords = key_len / sizeof(u32); in ce_aes_expandkey()
79 if (key_len != AES_KEYSIZE_128 && in ce_aes_expandkey()
80 key_len != AES_KEYSIZE_192 && in ce_aes_expandkey()
81 key_len != AES_KEYSIZE_256) in ce_aes_expandkey()
84 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey()
85 ctx->key_length = key_len; in ce_aes_expandkey()
103 if (key_len == AES_KEYSIZE_192) { in ce_aes_expandkey()
108 } else if (key_len == AES_KEYSIZE_256) { in ce_aes_expandkey()
138 unsigned int key_len) in ce_aes_setkey() argument
[all …]
Daes-neonbs-glue.c61 unsigned int key_len) in aesbs_setkey() argument
67 err = crypto_aes_expand_key(&rk, in_key, key_len); in aesbs_setkey()
71 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
120 unsigned int key_len) in aesbs_cbc_setkey() argument
126 err = crypto_aes_expand_key(&rk, in_key, key_len); in aesbs_cbc_setkey()
130 ctx->key.rounds = 6 + key_len / 4; in aesbs_cbc_setkey()
136 return crypto_cipher_setkey(ctx->enc_tfm, in_key, key_len); in aesbs_cbc_setkey()
239 unsigned int key_len) in aesbs_xts_setkey() argument
244 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
248 key_len /= 2; in aesbs_xts_setkey()
[all …]
/arch/powerpc/crypto/
Daes-spe-glue.c78 unsigned int key_len);
95 unsigned int key_len) in ppc_aes_setkey() argument
99 if (key_len != AES_KEYSIZE_128 && in ppc_aes_setkey()
100 key_len != AES_KEYSIZE_192 && in ppc_aes_setkey()
101 key_len != AES_KEYSIZE_256) { in ppc_aes_setkey()
106 switch (key_len) { in ppc_aes_setkey()
121 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_aes_setkey()
127 unsigned int key_len) in ppc_xts_setkey() argument
132 err = xts_check_key(tfm, in_key, key_len); in ppc_xts_setkey()
136 key_len >>= 1; in ppc_xts_setkey()
[all …]
/arch/x86/include/asm/crypto/
Dcamellia.h31 unsigned int key_len, u32 *flags);