Home
last modified time | relevance | path

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

/Linux-v6.6/arch/arm/crypto/
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-v6.6/crypto/
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,
Dchacha20poly1305.c479 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey()
/Linux-v6.6/arch/mips/crypto/
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-v6.6/arch/powerpc/crypto/
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-v6.6/arch/arm64/crypto/
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-v6.6/arch/x86/crypto/
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-v6.6/drivers/char/
Drandom.c207 u8 key[CHACHA_KEY_SIZE] __aligned(__alignof__(long));
215 u8 key[CHACHA_KEY_SIZE];
254 u8 key[CHACHA_KEY_SIZE]; in crng_reseed()
294 static void crng_fast_key_erasure(u8 key[CHACHA_KEY_SIZE], in crng_fast_key_erasure() argument
303 memcpy(&chacha_state[4], key, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
307 memcpy(key, first_block, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
308 memcpy(random_data, first_block + CHACHA_KEY_SIZE, random_data_len); in crng_fast_key_erasure()
435 crng_make_state(chacha_state, (u8 *)&chacha_state[4], CHACHA_KEY_SIZE); in get_random_bytes_user()
441 if (iov_iter_count(iter) <= CHACHA_KEY_SIZE) { in get_random_bytes_user()
442 ret = copy_to_iter(&chacha_state[4], CHACHA_KEY_SIZE, iter); in get_random_bytes_user()
/Linux-v6.6/arch/s390/crypto/
Dchacha-glue.c102 .min_keysize = CHACHA_KEY_SIZE,
103 .max_keysize = CHACHA_KEY_SIZE,
/Linux-v6.6/include/crypto/internal/
Dchacha.h21 if (keysize != CHACHA_KEY_SIZE) in chacha_setkey()
/Linux-v6.6/include/crypto/
Dchacha.h24 #define CHACHA_KEY_SIZE 32 macro
/Linux-v6.6/drivers/crypto/inside-secure/
Dsafexcel_cipher.c2809 if (memcmp(ctx->key, key, CHACHA_KEY_SIZE)) in safexcel_chacha20_setkey()
2812 memcpy(ctx->key, key, CHACHA_KEY_SIZE); in safexcel_chacha20_setkey()
2813 ctx->key_len = CHACHA_KEY_SIZE; in safexcel_chacha20_setkey()
2821 if (len != CHACHA_KEY_SIZE) in safexcel_skcipher_chacha20_setkey()
2847 .min_keysize = CHACHA_KEY_SIZE,
2848 .max_keysize = CHACHA_KEY_SIZE,
2878 if (len != CHACHA_KEY_SIZE) in safexcel_aead_chachapoly_setkey()
2902 u32 key[CHACHA_KEY_SIZE / sizeof(u32) + 1]; in safexcel_aead_chachapoly_crypt()
2917 memcpy(key, ctx->key, CHACHA_KEY_SIZE); in safexcel_aead_chachapoly_crypt()
2920 key[CHACHA_KEY_SIZE / sizeof(u32)] = ctx->nonce; in safexcel_aead_chachapoly_crypt()
[all …]
/Linux-v6.6/lib/crypto/
Dchacha20poly1305.c22 #define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
/Linux-v6.6/drivers/crypto/caam/
Dcaamalg_qi2.c641 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()
1041 if (keylen != CHACHA_KEY_SIZE) in chacha20_skcipher_setkey()
1790 .min_keysize = CHACHA_KEY_SIZE,
1791 .max_keysize = CHACHA_KEY_SIZE,
Dcaamalg.c575 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()