/linux/arch/arm/crypto/ |
H A D | chacha-glue.c | 204 .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 D | chacha_generic.c | 78 .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 D | chacha20poly1305.c | 479 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey()
|
/linux/arch/mips/crypto/ |
H A D | chacha-glue.c | 89 .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 D | chacha-p10-glue.c | 158 .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 D | chacha-neon-glue.c | 172 .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 D | getrandom.h | 11 #define CHACHA_KEY_SIZE 32 macro 37 u32 key[CHACHA_KEY_SIZE / sizeof(u32)];
|
/linux/arch/x86/crypto/ |
H A D | chacha_glue.c | 239 .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 D | chacha-riscv64-glue.c | 66 .min_keysize = CHACHA_KEY_SIZE, 67 .max_keysize = CHACHA_KEY_SIZE,
|
/linux/drivers/char/ |
H A D | random.c | 212 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 D | chacha-glue.c | 102 .min_keysize = CHACHA_KEY_SIZE, 103 .max_keysize = CHACHA_KEY_SIZE,
|
/linux/include/crypto/internal/ |
H A D | chacha.h | 21 if (keysize != CHACHA_KEY_SIZE) in chacha_setkey()
|
/linux/include/crypto/ |
H A D | chacha.h | 24 #define CHACHA_KEY_SIZE 32 macro
|
/linux/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 2736 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 D | chacha20poly1305.c | 22 #define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32))
|
/linux/drivers/crypto/caam/ |
H A D | caamalg_qi2.c | 641 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 D | caamalg.c | 575 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()
|