Home
last modified time | relevance | path

Searched refs:nrounds (Results 1 – 15 of 15) sorted by relevance

/linux/lib/crypto/x86/
H A Dchacha.h15 unsigned int len, int nrounds);
18 unsigned int len, int nrounds);
20 u32 out[HCHACHA_OUT_WORDS], int nrounds);
24 unsigned int len, int nrounds);
27 unsigned int len, int nrounds);
30 unsigned int len, int nrounds);
34 unsigned int len, int nrounds);
37 unsigned int len, int nrounds);
40 unsigned int len, int nrounds);
53 unsigned int bytes, int nrounds) in chacha_dosimd() argument
[all …]
H A Dchacha-ssse3-x86_64.S119 # %r8d: nrounds
205 # %edx: nrounds
228 # %r8d: nrounds
H A Dchacha-avx512vl-x86_64.S32 # %r8d: nrounds
197 # %r8d: nrounds
463 # %r8d: nrounds
H A Dchacha-avx2-x86_64.S42 # %r8d: nrounds
234 # %r8d: nrounds
539 # %r8d: nrounds
/linux/lib/crypto/arm/
H A Dchacha.h18 u8 *dst, const u8 *src, int nrounds);
21 int nrounds, unsigned int nbytes);
23 u32 out[HCHACHA_OUT_WORDS], int nrounds);
25 u32 out[HCHACHA_OUT_WORDS], int nrounds);
28 const struct chacha_state *state, int nrounds);
38 unsigned int bytes, int nrounds) in chacha_doneon() argument
45 chacha_4block_xor_neon(state, dst, src, nrounds, l); in chacha_doneon()
57 chacha_block_xor_neon(state, d, s, nrounds); in chacha_doneon()
65 u32 out[HCHACHA_OUT_WORDS], int nrounds) in hchacha_block_arch() argument
68 hchacha_block_arm(state, out, nrounds); in hchacha_block_arch()
[all …]
H A Dchacha-scalar-core.S132 .macro _chacha_permute nrounds argument
135 .rept \nrounds / 2
140 .macro _chacha nrounds argument
147 _chacha_permute \nrounds
/linux/lib/crypto/powerpc/
H A Dchacha.h16 const u8 *src, unsigned int len, int nrounds);
33 unsigned int bytes, int nrounds) in chacha_p10_do_8x() argument
38 chacha_p10le_8x(state, dst, src, l, nrounds); in chacha_p10_do_8x()
46 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_p10_do_8x()
52 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
56 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
62 chacha_p10_do_8x(state, dst, src, todo, nrounds); in chacha_crypt_arch()
H A Daes.h47 const u8 *in_key, int key_len, int nrounds) in aes_preparekey_arch() argument
66 ppc_encrypt_aes(out, in, key->k.spe_enc_key, key->nrounds / 2 - 1); in aes_encrypt_arch()
75 ppc_decrypt_aes(out, in, key->inv_k.spe_dec_key, key->nrounds / 2 - 1); in aes_decrypt_arch()
94 return key->nrounds != 0; in is_vsx_format()
131 const u8 *in_key, int key_len, int nrounds) in aes_preparekey_arch() argument
160 k->p8.nrounds = 0; in aes_preparekey_arch()
162 inv_k->p8.nrounds = 0; in aes_preparekey_arch()
187 for (int i = 0; i < 4 * (key->nrounds + 1); i += 4) in aes_encrypt_arch()
190 aes_encrypt_generic(rndkeys, key->nrounds, out, in); in aes_encrypt_arch()
192 aes_encrypt_generic(key->k.rndkeys, key->nrounds, out, in); in aes_encrypt_arch()
[all …]
H A Dchacha-p10le-8x.S576 # unsigned int len, int nrounds);
/linux/lib/crypto/riscv/
H A Dchacha.h17 size_t nblocks, int nrounds);
22 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
29 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
33 chacha_zvkb(state, src, dst, full_blocks, nrounds); in chacha_crypt_arch()
39 chacha_zvkb(state, block_buffer, block_buffer, 1, nrounds); in chacha_crypt_arch()
/linux/lib/crypto/
H A Dchacha-block-generic.c16 static void chacha_permute(struct chacha_state *state, int nrounds) in chacha_permute() argument
22 WARN_ON_ONCE(nrounds != 20 && nrounds != 12); in chacha_permute()
24 for (i = 0; i < nrounds; i += 2) { in chacha_permute()
78 u8 out[CHACHA_BLOCK_SIZE], int nrounds) in chacha_block_generic() argument
83 chacha_permute(&permuted_state, nrounds); in chacha_block_generic()
107 u32 out[HCHACHA_OUT_WORDS], int nrounds) in hchacha_block_generic() argument
111 chacha_permute(&permuted_state, nrounds); in hchacha_block_generic()
/linux/crypto/
H A Dchacha.c17 int nrounds; member
21 const u8 *key, unsigned int keysize, int nrounds) in chacha_setkey() argument
32 ctx->nrounds = nrounds; in chacha_setkey()
67 nbytes, ctx->nrounds); in chacha_stream_xor()
92 hchacha_block(&state, subctx.key, ctx->nrounds); in crypto_xchacha_crypt()
93 subctx.nrounds = ctx->nrounds; in crypto_xchacha_crypt()
/linux/lib/crypto/s390/
H A Dchacha.h18 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
24 if (bytes <= CHACHA_BLOCK_SIZE || nrounds != 20 || !cpu_has_vx()) { in chacha_crypt_arch()
25 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
/linux/include/crypto/
H A Dchacha.h41 u8 out[at_least CHACHA_BLOCK_SIZE], int nrounds);
49 u32 out[at_least HCHACHA_OUT_WORDS], int nrounds);
52 u32 out[at_least HCHACHA_OUT_WORDS], int nrounds);
89 unsigned int bytes, int nrounds);
/linux/lib/crypto/mips/
H A Dchacha.h12 unsigned int bytes, int nrounds);
14 u32 out[HCHACHA_OUT_WORDS], int nrounds);