--- Crypt-Spritz/Spritz.pm 2015/01/10 09:20:24 1.7 +++ Crypt-Spritz/Spritz.pm 2015/01/10 09:36:01 1.8 @@ -448,6 +448,33 @@ =back +=head2 THE Crypt::Spritz::Cipher CLASS + +This class is pretty much the same as the C +class, with two differences: first, it implements the "standard" Spritz +encryption algorithm, and second, while this variant is easier to analyze +mathematically, there is little else to recommend it for, as it is slower, +and requires lots of code duplication code. + +So unless you need to be compatible with another implementation that does +not offer the XOR variant, stick to C. + +All the methods from C are available, except +C, which has been replaced by separate C and C +methods: + +=over 4 + +=item $encrypted = $cipher->encrypt ($cleartext) + +=item $cleartext = $cipher->decrypt ($encrypted) + +Really the same as C, except you need separate +calls and code for encryption and decryption. + +=back + + =head2 THE Crypt::Spritz::AEAD::XOR CLASS This is the most complicated class - it combines encryption and @@ -583,6 +610,34 @@ =back + +=head2 THE Crypt::Spritz::AEAD CLASS + +This class is pretty much the same as the C +class, with two differences: first, it implements the "standard" Spritz +encryption algorithm, and second, while this variant is easier to analyze +mathematically, there is little else to recommend it for, as it is slower, +and requires lots of code duplication code. + +So unless you need to be compatible with another implementation that does +not offer the XOR variant, stick to C. + +All the methods from C are available, except +C, which has been replaced by separate C and C +methods: + +=over 4 + +=item $encrypted = $cipher->encrypt ($cleartext) + +=item $cleartext = $cipher->decrypt ($encrypted) + +Really the same as C, except you need separate +calls and code for encryption and decryption, but you have the same +limitations on usage. + +=back + =head1 SEE ALSO