ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Crypt-Spritz/Spritz.pm
(Generate patch)

Comparing cvsroot/Crypt-Spritz/Spritz.pm (file contents):
Revision 1.13 by root, Tue Jun 30 01:24:43 2015 UTC vs.
Revision 1.14 by root, Sun Mar 5 16:33:55 2017 UTC

38 $aead->nonce ($counter); 38 $aead->nonce ($counter);
39 $aead->associated_data ($header); 39 $aead->associated_data ($header);
40 $ciphertext = $aead->encrypt ($cleartext); 40 $ciphertext = $aead->encrypt ($cleartext);
41 # $cleartext = $aead->decrypt ($ciphertext); 41 # $cleartext = $aead->decrypt ($ciphertext);
42 $mac = $aead->mac; 42 $mac = $aead->mac;
43
44=head1 WARNING
45
46The best known result (early 2017) against Spritz is a distinguisher
47attack on 2**44 outputs with multiple keys/IVs, and on 2**60 outputs with
48a single key (see doi:10.1007/978-3-662-52993-5_4 for details). These are
49realistic attacks, so Spritz needs to be considered broken, although for
50low data applications it should still be useful.
43 51
44=head1 DESCRIPTION 52=head1 DESCRIPTION
45 53
46This module implements the Spritz spongelike function (with N=256), the 54This module implements the Spritz spongelike function (with N=256), the
47spiritual successor of RC4 developed by Ron Rivest and Jacob Schuldt. 55spiritual successor of RC4 developed by Ron Rivest and Jacob Schuldt.
80 88
81package Crypt::Spritz; 89package Crypt::Spritz;
82 90
83use XSLoader; 91use XSLoader;
84 92
85$VERSION = 1.01; 93$VERSION = 1.02;
86 94
87XSLoader::load __PACKAGE__, $VERSION; 95XSLoader::load __PACKAGE__, $VERSION;
88 96
89@Crypt::Spritz::ISA = Crypt::Spritz::Base::; 97@Crypt::Spritz::ISA = Crypt::Spritz::Base::;
90 98

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines