Skip Menu |

This queue is for tickets about the Crypt-CBC CPAN distribution.

Report information
The Basics
Id: 40828
Status: new
Priority: 0/
Queue: Crypt-CBC

People
Owner: Nobody in particular
Requestors: mark.zealey [...] pipex.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.30
Fixed in: 2.15



Subject: literal_key in newer versions forces key to be 56 bytes.
Hi, when upgrading from version 2.15 to version 2.30 we have a breakage caused by the enhanced key size checking when -literal_key is specified (line 145): # KEYSIZE consistency if (defined $key && length($key) != $ks) { croak "If specified by -literal_key, then the key length must be equal to the chosen cipher's key length of $ks bytes"; } Because blowfish doesn't worry about key size I think this is a bug (I believe the key for blowfish must be 8 <= ks <= 56). If I comment out the croak then our code works correctly. Thanks, Mark