Skip to main content

Questions tagged [chacha]

ChaCha is a family of stream ciphers proposed by Daniel J. Bernstein, as an evolution of Salsa20 with (conjecturally) improved resistance to cryptanalysis.

2 votes
0 answers
83 views

XChaCha20 takes a 192-bit nonce and a 64-bit counter, but I need a 256-bit nonce. Can I simply XOR the 64-bit counter to the bottom of a 256-bit random nonce? This would be analogue to the XCTR mode ...
luiz's user avatar
  • 95
2 votes
1 answer
113 views

Under the assumption that ChaCha20's nonce and counter are replaced with a 128-bit counter, how many blocks would it be secure up to? My intuition tells me it is secure even after encrypting $2^{128}$ ...
Melab's user avatar
  • 4,328
3 votes
2 answers
675 views

Can an adversary invert some rounds of ChaCha20 (or ChaCha12) to obtain the internal state of a specific round? I mean, if an adversary can invert 12 rounds of ChaCha20 to obtain the internal state of ...
przemyslawo's user avatar
3 votes
1 answer
315 views

The generalized ChaCha core permutation (as used in BLAKE and *NORX) consists of: $$ \mathrm{QuarterRound}(a, b, c, d):\\ \...
luiz's user avatar
  • 95
4 votes
1 answer
184 views

chacha20 has 20 rounds and even that is somewhat deceptive because the rounds alternate between columns and diagonals such that you need 2 rounds to involve the entire state. However if you compare it ...
Unlordship's user avatar
1 vote
0 answers
114 views

If you take the quarter round function from ChaCha/BLAKE (128 bit permutation with 32-bit words or 256 bit permutation with 64-bit words; different rotation constants) Would you have a sound 128/256 ...
Amelie's user avatar
  • 11
1 vote
3 answers
132 views

When trying to implement a seeded CSPRNG, is there any security differences between: chacha20(seed, 0) chacha20(seed, 1) ... chacha20(seed, n) and ...
caveman's user avatar
  • 721
5 votes
2 answers
155 views

salsa20/chacha20/blake/blake2/blake3 all utilize a 4x4 grid of words on which transformations occur row-wise and then column/diagonal-wise. State size varies between 512 and 1024 bits based on word ...
thenighday's user avatar
1 vote
3 answers
237 views

As I understand it, the chacha20 algorithm is designed for use with 256-bit keys, but is it possible to use shorter keys than this without compromising the security? Say if i use a 192-bit key and set ...
DerekKnowles's user avatar
-2 votes
1 answer
140 views

What is the security rationale behind incrementing by 1 in stream ciphers like ChaCha20Poly1305—which often only changes one or two bits and is very weak and predictible—versus other methods like ...
Jack G's user avatar
  • 99
2 votes
2 answers
153 views

My knowledge of cryptography nothing beyond basic so I am by no means an expert, but I do know a bit of undergraduate mathematics including number theory. I know that stream ciphers like ChaCha20 is ...
cryptobro's user avatar
0 votes
0 answers
130 views

I wrote a simple implementation of ChaCha20 encryptor for files in C using MbedTLS implementation. The process of encryption is standard - I set key, then for each block of fixed size I generate new ...
Enty AV's user avatar
1 vote
1 answer
721 views

Would it be possible to use ChaCha20 as a block cipher? With the key, the entire block function can be reversed.
somehybrid's user avatar
2 votes
2 answers
615 views

Is it possible to change the constant values of ChaCha20? and how it will affect the security of the cipher.
MFFC24's user avatar
  • 31
1 vote
0 answers
108 views

Research paper: "Extended-Chacha20 Stream Cipher With Enhanced Quarter Round Function" The initial matrix is 6x6, but what are the exact inputs for each index, in other words, how will you ...
MFFC24's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
13