Skip to content
Snippets Groups Projects
  • René Kijewski's avatar
    2cf42537
    sys: add ChaCha stream cipher and PRNG · 2cf42537
    René Kijewski authored
    This implementation is optimized for a little code and data size, not
    for speed. IMO the code is more readable than in the reference
    implementation.
    
    The biggest advantage of ChaCha over other stream ciphers is the very
    little data usage with only 64 bytes of context, and its good encryption
    speed.
    
    Also part of this PR is pseudo-random number generator, that just
    returns the keystream of a randomly initialized ChaCha context.
    2cf42537
    History
    sys: add ChaCha stream cipher and PRNG
    René Kijewski authored
    This implementation is optimized for a little code and data size, not
    for speed. IMO the code is more readable than in the reference
    implementation.
    
    The biggest advantage of ChaCha over other stream ciphers is the very
    little data usage with only 64 bytes of context, and its good encryption
    speed.
    
    Also part of this PR is pseudo-random number generator, that just
    returns the keystream of a randomly initialized ChaCha context.