Home
last modified time | relevance | path

Searched refs:nrounds (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dchacha_glue.c19 unsigned int len, int nrounds);
21 unsigned int len, int nrounds);
22 asmlinkage void hchacha_block_ssse3(const u32 *state, u32 *out, int nrounds);
25 unsigned int len, int nrounds);
27 unsigned int len, int nrounds);
29 unsigned int len, int nrounds);
32 unsigned int len, int nrounds);
34 unsigned int len, int nrounds);
36 unsigned int len, int nrounds);
49 unsigned int bytes, int nrounds) in chacha_dosimd()
48 chacha_dosimd(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_dosimd() argument
124 hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) hchacha_block_arch() argument
142 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
H A Dchacha-ssse3-x86_64.S119 # %r8d: nrounds
205 # %edx: nrounds
228 # %r8d: nrounds
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dchacha_glue.c19 unsigned int len, int nrounds);
21 unsigned int len, int nrounds);
22 asmlinkage void hchacha_block_ssse3(const u32 *state, u32 *out, int nrounds);
25 unsigned int len, int nrounds);
27 unsigned int len, int nrounds);
29 unsigned int len, int nrounds);
32 unsigned int len, int nrounds);
34 unsigned int len, int nrounds);
36 unsigned int len, int nrounds);
49 unsigned int bytes, int nrounds) in chacha_dosimd()
48 chacha_dosimd(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_dosimd() argument
124 hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) hchacha_block_arch() argument
142 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
/kernel/linux/linux-5.10/arch/arm64/crypto/
H A Dchacha-neon-glue.c35 int nrounds);
37 int nrounds, int bytes);
38 asmlinkage void hchacha_block_neon(const u32 *state, u32 *out, int nrounds);
43 int bytes, int nrounds) in chacha_doneon()
52 chacha_block_xor_neon(state, buf, buf, nrounds); in chacha_doneon()
57 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon()
65 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
68 hchacha_block_generic(state, stream, nrounds); in hchacha_block_arch()
71 hchacha_block_neon(state, stream, nrounds); in hchacha_block_arch()
84 int nrounds) in chacha_crypt_arch()
42 chacha_doneon(u32 *state, u8 *dst, const u8 *src, int bytes, int nrounds) chacha_doneon() argument
83 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
H A Dghash-ce-glue.c345 int nrounds = num_rounds(&ctx->aes_key); in gcm_encrypt() local
383 dg, iv, ctx->aes_key.key_enc, nrounds, in gcm_encrypt()
459 int nrounds = num_rounds(&ctx->aes_key); in gcm_decrypt() local
497 dg, iv, ctx->aes_key.key_enc, nrounds, in gcm_decrypt()
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Dchacha-neon-glue.c35 int nrounds);
37 int nrounds, int bytes);
38 asmlinkage void hchacha_block_neon(const u32 *state, u32 *out, int nrounds);
43 int bytes, int nrounds) in chacha_doneon()
52 chacha_block_xor_neon(state, buf, buf, nrounds); in chacha_doneon()
57 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon()
65 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
68 hchacha_block_generic(state, stream, nrounds); in hchacha_block_arch()
71 hchacha_block_neon(state, stream, nrounds); in hchacha_block_arch()
84 int nrounds) in chacha_crypt_arch()
42 chacha_doneon(u32 *state, u8 *dst, const u8 *src, int bytes, int nrounds) chacha_doneon() argument
83 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
H A Dghash-ce-glue.c339 int nrounds = num_rounds(&ctx->aes_key); in gcm_encrypt() local
374 dg, iv, ctx->aes_key.key_enc, nrounds, in gcm_encrypt()
403 int nrounds = num_rounds(&ctx->aes_key); in gcm_decrypt() local
445 nrounds, tag, otag, authsize); in gcm_decrypt()
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Dchacha-glue.c24 int nrounds);
26 int nrounds);
27 asmlinkage void hchacha_block_arm(const u32 *state, u32 *out, int nrounds);
28 asmlinkage void hchacha_block_neon(const u32 *state, u32 *out, int nrounds);
31 const u32 *state, int nrounds);
41 unsigned int bytes, int nrounds) in chacha_doneon()
46 chacha_4block_xor_neon(state, dst, src, nrounds); in chacha_doneon()
53 chacha_block_xor_neon(state, dst, src, nrounds); in chacha_doneon()
61 chacha_block_xor_neon(state, buf, buf, nrounds); in chacha_doneon()
66 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
40 chacha_doneon(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_doneon() argument
84 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dchacha-glue.c24 int nrounds);
26 int nrounds, unsigned int nbytes);
27 asmlinkage void hchacha_block_arm(const u32 *state, u32 *out, int nrounds);
28 asmlinkage void hchacha_block_neon(const u32 *state, u32 *out, int nrounds);
31 const u32 *state, int nrounds);
41 unsigned int bytes, int nrounds) in chacha_doneon()
48 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon()
60 chacha_block_xor_neon(state, d, s, nrounds); in chacha_doneon()
67 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
70 hchacha_block_arm(state, stream, nrounds); in hchacha_block_arch()
40 chacha_doneon(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_doneon() argument
85 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
/kernel/linux/linux-5.10/include/crypto/
H A Dchacha.h33 void chacha_block_generic(u32 *state, u8 *stream, int nrounds);
39 void hchacha_block_arch(const u32 *state, u32 *out, int nrounds);
40 void hchacha_block_generic(const u32 *state, u32 *out, int nrounds);
42 static inline void hchacha_block(const u32 *state, u32 *out, int nrounds) in hchacha_block() argument
45 hchacha_block_arch(state, out, nrounds); in hchacha_block()
47 hchacha_block_generic(state, out, nrounds); in hchacha_block()
92 unsigned int bytes, int nrounds);
94 unsigned int bytes, int nrounds);
97 unsigned int bytes, int nrounds) in chacha_crypt()
100 chacha_crypt_arch(state, dst, src, bytes, nrounds); in chacha_crypt()
96 chacha_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt() argument
[all...]
/kernel/linux/linux-6.6/include/crypto/
H A Dchacha.h33 void chacha_block_generic(u32 *state, u8 *stream, int nrounds);
39 void hchacha_block_arch(const u32 *state, u32 *out, int nrounds);
40 void hchacha_block_generic(const u32 *state, u32 *out, int nrounds);
42 static inline void hchacha_block(const u32 *state, u32 *out, int nrounds) in hchacha_block() argument
45 hchacha_block_arch(state, out, nrounds); in hchacha_block()
47 hchacha_block_generic(state, out, nrounds); in hchacha_block()
92 unsigned int bytes, int nrounds);
94 unsigned int bytes, int nrounds);
97 unsigned int bytes, int nrounds) in chacha_crypt()
100 chacha_crypt_arch(state, dst, src, bytes, nrounds); in chacha_crypt()
96 chacha_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/crypto/
H A Dchacha-p10-glue.c21 unsigned int len, int nrounds);
38 unsigned int bytes, int nrounds) in chacha_p10_do_8x()
43 chacha_p10le_8x(state, dst, src, l, nrounds); in chacha_p10_do_8x()
51 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_p10_do_8x()
54 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
56 hchacha_block_generic(state, stream, nrounds); in hchacha_block_arch()
67 int nrounds) in chacha_crypt_arch()
71 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
77 chacha_p10_do_8x(state, dst, src, todo, nrounds); in chacha_crypt_arch()
109 ctx->nrounds); in chacha_p10_stream_xor()
37 chacha_p10_do_8x(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_p10_do_8x() argument
66 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
H A Dchacha-p10le-8x.S11 # size_t len, int nrounds);
578 # chacha20_p10le_8x(u32 *state, byte *dst, const byte *src, size_t len, int nrounds);
/kernel/linux/linux-5.10/lib/crypto/
H A Dchacha.c16 static void chacha_permute(u32 *x, int nrounds) in chacha_permute() argument
21 WARN_ON_ONCE(nrounds != 20 && nrounds != 12); in chacha_permute()
23 for (i = 0; i < nrounds; i += 2) { in chacha_permute()
70 * @nrounds: number of rounds (20 or 12; 20 is recommended)
76 void chacha_block_generic(u32 *state, u8 *stream, int nrounds) in chacha_block_generic() argument
83 chacha_permute(x, nrounds); in chacha_block_generic()
96 * @nrounds: number of rounds (20 or 12; 20 is recommended)
103 void hchacha_block_generic(const u32 *state, u32 *stream, int nrounds) in hchacha_block_generic() argument
109 chacha_permute(x, nrounds); in hchacha_block_generic()
[all...]
H A Dlibchacha.c16 unsigned int bytes, int nrounds) in chacha_crypt_generic()
22 chacha_block_generic(state, stream, nrounds); in chacha_crypt_generic()
29 chacha_block_generic(state, stream, nrounds); in chacha_crypt_generic()
15 chacha_crypt_generic(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_generic() argument
/kernel/linux/linux-6.6/lib/crypto/
H A Dchacha.c16 static void chacha_permute(u32 *x, int nrounds) in chacha_permute() argument
21 WARN_ON_ONCE(nrounds != 20 && nrounds != 12); in chacha_permute()
23 for (i = 0; i < nrounds; i += 2) { in chacha_permute()
70 * @nrounds: number of rounds (20 or 12; 20 is recommended)
76 void chacha_block_generic(u32 *state, u8 *stream, int nrounds) in chacha_block_generic() argument
83 chacha_permute(x, nrounds); in chacha_block_generic()
96 * @nrounds: number of rounds (20 or 12; 20 is recommended)
103 void hchacha_block_generic(const u32 *state, u32 *stream, int nrounds) in hchacha_block_generic() argument
109 chacha_permute(x, nrounds); in hchacha_block_generic()
[all...]
H A Dlibchacha.c16 unsigned int bytes, int nrounds) in chacha_crypt_generic()
22 chacha_block_generic(state, stream, nrounds); in chacha_crypt_generic()
29 chacha_block_generic(state, stream, nrounds); in chacha_crypt_generic()
15 chacha_crypt_generic(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_generic() argument
/kernel/linux/linux-5.10/include/crypto/internal/
H A Dchacha.h12 int nrounds; member
16 unsigned int keysize, int nrounds) in chacha_setkey()
27 ctx->nrounds = nrounds; in chacha_setkey()
15 chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keysize, int nrounds) chacha_setkey() argument
/kernel/linux/linux-6.6/include/crypto/internal/
H A Dchacha.h12 int nrounds; member
16 unsigned int keysize, int nrounds) in chacha_setkey()
27 ctx->nrounds = nrounds; in chacha_setkey()
15 chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keysize, int nrounds) chacha_setkey() argument
/kernel/linux/linux-6.6/arch/s390/crypto/
H A Dchacha-glue.c54 ctx->nrounds); in chacha20_s390()
65 void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds) in hchacha_block_arch() argument
68 hchacha_block_generic(state, stream, nrounds); in hchacha_block_arch()
79 unsigned int bytes, int nrounds) in chacha_crypt_arch()
85 if (bytes <= CHACHA_BLOCK_SIZE || nrounds != 20 || !MACHINE_HAS_VX) in chacha_crypt_arch()
86 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
78 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
/kernel/linux/linux-5.10/arch/mips/crypto/
H A Dchacha-glue.c17 unsigned int bytes, int nrounds);
20 asmlinkage void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds);
47 nbytes, ctx->nrounds); in chacha_mips_stream_xor()
72 hchacha_block(state, subctx.key, ctx->nrounds); in xchacha_mips()
73 subctx.nrounds = ctx->nrounds; in xchacha_mips()
/kernel/linux/linux-6.6/arch/mips/crypto/
H A Dchacha-glue.c17 unsigned int bytes, int nrounds);
20 asmlinkage void hchacha_block_arch(const u32 *state, u32 *stream, int nrounds);
47 nbytes, ctx->nrounds); in chacha_mips_stream_xor()
72 hchacha_block(state, subctx.key, ctx->nrounds); in xchacha_mips()
73 subctx.nrounds = ctx->nrounds; in xchacha_mips()
/kernel/linux/linux-5.10/crypto/
H A Dchacha_generic.c33 walk.src.virt.addr, nbytes, ctx->nrounds); in chacha_stream_xor()
58 hchacha_block_generic(state, subctx.key, ctx->nrounds); in crypto_xchacha_crypt()
59 subctx.nrounds = ctx->nrounds; in crypto_xchacha_crypt()
/kernel/linux/linux-6.6/crypto/
H A Dchacha_generic.c33 walk.src.virt.addr, nbytes, ctx->nrounds); in chacha_stream_xor()
58 hchacha_block_generic(state, subctx.key, ctx->nrounds); in crypto_xchacha_crypt()
59 subctx.nrounds = ctx->nrounds; in crypto_xchacha_crypt()
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dqat_algs.c468 int nrounds; in qat_alg_xts_reverse_key() local
473 nrounds = 10; in qat_alg_xts_reverse_key()
474 key = (u8 *)aes_expanded.key_enc + (AES_BLOCK_SIZE * nrounds); in qat_alg_xts_reverse_key()
478 nrounds = 14; in qat_alg_xts_reverse_key()
479 key = (u8 *)aes_expanded.key_enc + (AES_BLOCK_SIZE * nrounds); in qat_alg_xts_reverse_key()

Completed in 10 milliseconds

12