Salsa20 is a stream cipher; like any stream cipher Salsa20 encrypts/decrypts data by xor‘ing a plaintext/ciphertext with a pseudorandom keystream. Salsa20 generates keystream by hashing a 64-byte (512-bit) blocks; the block consists of 4 parts: fixed “magic words” – 16 bytes ...
More...