Name : perl-Crypt-Salsa20
| |
Version : 0.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.3.1
| Date : 2024-07-03 17:57:37
|
Group : Development/Libraries/Perl
| Source RPM : perl-Crypt-Salsa20-0.03-lp156.3.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Encrypt data with the Salsa20 cipher
|
Description :
Crypt::Salsa20 implements D. J. Bernstein\'s Salsa20 stream cipher (a.k.a. Snuffle 2005) in Perl. For more information on Salsa20, see his page at http://cr.yp.to/snuffle.html.
Salsa20 takes a 256 bit (or 128 bit) key and a 64 bit nonce (a.k.a. an IV or message number) and uses them to generate a stream of up to 2**70 bytes of pseudo-random data. That stream is XORed with your message. Because of that, encryption and decryption are the same operation.
It is critical that you never use the same nonce and key to encrypt two different messages. Because the keystream is completely determined by the key and nonce, reusing them means that you can cancel out the keystream by XORing the two ciphertexts together:
ciphertext1 ^ ciphertext2 keystream ^ message1 ^ keystream ^ message2 message1 ^ message2 ^ keystream ^ keystream message1 ^ message2 ^ 0 message1 ^ message2
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.6/noarch |