Home
last modified time | relevance | path

Searched refs:CHACHA_KEY_SIZE (Results 1 – 17 of 17) sorted by relevance

/linux/arch/arm/crypto/
H A Dchacha-glue.c204 .min_keysize = CHACHA_KEY_SIZE,
205 .max_keysize = CHACHA_KEY_SIZE,
219 .min_keysize = CHACHA_KEY_SIZE,
220 .max_keysize = CHACHA_KEY_SIZE,
234 .min_keysize = CHACHA_KEY_SIZE,
235 .max_keysize = CHACHA_KEY_SIZE,
253 .min_keysize = CHACHA_KEY_SIZE,
254 .max_keysize = CHACHA_KEY_SIZE,
269 .min_keysize = CHACHA_KEY_SIZE,
270 .max_keysize = CHACHA_KEY_SIZE,
[all …]
/linux/crypto/
H A Dchacha_generic.c78 .min_keysize = CHACHA_KEY_SIZE,
79 .max_keysize = CHACHA_KEY_SIZE,
93 .min_keysize = CHACHA_KEY_SIZE,
94 .max_keysize = CHACHA_KEY_SIZE,
108 .min_keysize = CHACHA_KEY_SIZE,
109 .max_keysize = CHACHA_KEY_SIZE,
H A Dchacha20poly1305.c479 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey()
/linux/arch/mips/crypto/
H A Dchacha-glue.c89 .min_keysize = CHACHA_KEY_SIZE,
90 .max_keysize = CHACHA_KEY_SIZE,
104 .min_keysize = CHACHA_KEY_SIZE,
105 .max_keysize = CHACHA_KEY_SIZE,
119 .min_keysize = CHACHA_KEY_SIZE,
120 .max_keysize = CHACHA_KEY_SIZE,
/linux/arch/powerpc/crypto/
H A Dchacha-p10-glue.c158 .min_keysize = CHACHA_KEY_SIZE,
159 .max_keysize = CHACHA_KEY_SIZE,
173 .min_keysize = CHACHA_KEY_SIZE,
174 .max_keysize = CHACHA_KEY_SIZE,
188 .min_keysize = CHACHA_KEY_SIZE,
189 .max_keysize = CHACHA_KEY_SIZE,
/linux/arch/arm64/crypto/
H A Dchacha-neon-glue.c172 .min_keysize = CHACHA_KEY_SIZE,
173 .max_keysize = CHACHA_KEY_SIZE,
188 .min_keysize = CHACHA_KEY_SIZE,
189 .max_keysize = CHACHA_KEY_SIZE,
204 .min_keysize = CHACHA_KEY_SIZE,
205 .max_keysize = CHACHA_KEY_SIZE,
/linux/include/vdso/
H A Dgetrandom.h11 #define CHACHA_KEY_SIZE 32 macro
37 u32 key[CHACHA_KEY_SIZE / sizeof(u32)];
/linux/arch/x86/crypto/
H A Dchacha_glue.c239 .min_keysize = CHACHA_KEY_SIZE,
240 .max_keysize = CHACHA_KEY_SIZE,
254 .min_keysize = CHACHA_KEY_SIZE,
255 .max_keysize = CHACHA_KEY_SIZE,
269 .min_keysize = CHACHA_KEY_SIZE,
270 .max_keysize = CHACHA_KEY_SIZE,
/linux/arch/riscv/crypto/
H A Dchacha-riscv64-glue.c66 .min_keysize = CHACHA_KEY_SIZE,
67 .max_keysize = CHACHA_KEY_SIZE,
/linux/drivers/char/
H A Drandom.c212 u8 key[CHACHA_KEY_SIZE] __aligned(__alignof__(long));
220 u8 key[CHACHA_KEY_SIZE];
259 u8 key[CHACHA_KEY_SIZE]; in crng_reseed()
315 static void crng_fast_key_erasure(u8 key[CHACHA_KEY_SIZE], in crng_fast_key_erasure() argument
324 memcpy(&chacha_state[4], key, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
328 memcpy(key, first_block, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
329 memcpy(random_data, first_block + CHACHA_KEY_SIZE, random_data_len); in crng_fast_key_erasure()
456 crng_make_state(chacha_state, (u8 *)&chacha_state[4], CHACHA_KEY_SIZE); in get_random_bytes_user()
462 if (iov_iter_count(iter) <= CHACHA_KEY_SIZE) { in get_random_bytes_user()
463 ret = copy_to_iter(&chacha_state[4], CHACHA_KEY_SIZE, iter); in get_random_bytes_user()
/linux/arch/s390/crypto/
H A Dchacha-glue.c102 .min_keysize = CHACHA_KEY_SIZE,
103 .max_keysize = CHACHA_KEY_SIZE,
/linux/include/crypto/internal/
H A Dchacha.h21 if (keysize != CHACHA_KEY_SIZE) in chacha_setkey()
/linux/include/crypto/
H A Dchacha.h24 #define CHACHA_KEY_SIZE 32 macro
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c2736 if (memcmp(ctx->key, key, CHACHA_KEY_SIZE)) in safexcel_chacha20_setkey()
2739 memcpy(ctx->key, key, CHACHA_KEY_SIZE); in safexcel_chacha20_setkey()
2740 ctx->key_len = CHACHA_KEY_SIZE; in safexcel_chacha20_setkey()
2748 if (len != CHACHA_KEY_SIZE) in safexcel_skcipher_chacha20_setkey()
2774 .min_keysize = CHACHA_KEY_SIZE,
2775 .max_keysize = CHACHA_KEY_SIZE,
2805 if (len != CHACHA_KEY_SIZE) in safexcel_aead_chachapoly_setkey()
2829 u32 key[CHACHA_KEY_SIZE / sizeof(u32) + 1]; in safexcel_aead_chachapoly_crypt()
2844 memcpy(key, ctx->key, CHACHA_KEY_SIZE); in safexcel_aead_chachapoly_crypt()
2847 key[CHACHA_KEY_SIZE / sizeof(u32)] = ctx->nonce; in safexcel_aead_chachapoly_crypt()
[all …]
/linux/lib/crypto/
H A Dchacha20poly1305.c22 #define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
/linux/drivers/crypto/caam/
H A Dcaamalg_qi2.c641 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()
1042 if (keylen != CHACHA_KEY_SIZE) in chacha20_skcipher_setkey()
1791 .min_keysize = CHACHA_KEY_SIZE,
1792 .max_keysize = CHACHA_KEY_SIZE,
H A Dcaamalg.c575 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()