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