Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
A variant of SALSA20.
Did you
encounter any
problem??
Classification of Ciphers
Key Key
Stream Stream
Otherwise it is called
Asynchronous.
Symmetric and asymmetric
stream ciphers….
Symmetric (also known as secret-key) ciphers use
the same key for encrypting and decrypting, so
the sender and the receiver must both know --
and use -- the same secret key.
AES Encryption
The Advanced
Encryption Standard,
or AES, is a
symmetric block
cipher chosen by the
U.S. government to
protect classified
information and is
implemented in
software and
hardware throughout
the world to encrypt
sensitive data.
Brute Force Attacks
Brute force (also known as
brute force cracking) is a
trial and error method used
by application programs to
decode encrypted data
such as passwords or Data
Encryption Standard (DES)
keys, through exhaustive
effort (using brute force)
rather than employing
intellectual strategies.
Daniel Julius Bernstein
Designed
the Salsa20 stream
cipher in 2005.
ChaCha20, was
published by him in 2008.
SALSA 20/20
The Salsa20/20 stream cipher expands a 256-bit
key into 264 randomly accessible streams, each
containing 264 randomly accessible 64-byte
blocks. Salsa20/20 is a more conservative design
than AES, and the community seems to have
rapidly gained confidence in the security of the
cipher.
32 32 32 32
512 bit block a2 b2 c2 d2
32 32 32 32
a3 b3 c3 d3
32 32 32 32
a4 b4 c4 d4
b ^= (a+d) <<< 7;
c ^= (b+a) <<< 9;
d ^= (c+b) <<< 13;
ARX
a ^= (d+c) <<< 18;
ChaCha Quarter Round
a += b; d ^= a; d <<<= 16;
c += d; b ^= c; b <<<= 12; AXR
a += b; d ^= a; d <<<= 8;
c += d; b ^= c; b <<<= 7;
Observations:
It works on 4 words at a time to
minimize memory access which
makes it very cache friendly, as in
Salsa.
It also scrambles data a bit
better than his earlier Salsa20
quarter-round, because each
word is updated twice here, and
every word has a chance to
influence the three others.
This makes Chacha20 a little
stronger than Salsa20 in practice.
The Matrix
Initial Matrix