[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
sbehrens at gmx.li
Wed Jan 12 14:59:38 CST 2011
I've added Schneier's CBC test vector to our test suite. We succeed.
Here's the vector as it looks in our code:
# chaining mode (CBC) test data
'Blowfish CBC mode test vector',
And here it is as presented by Schneier:
chaining mode test data
key = 0123456789ABCDEFF0E1D2C3B4A59687
iv = FEDCBA9876543210
data = "7654321 Now is the time for " (includes trailing '\0')
data = 37363534333231204E6F77206973207468652074696D6520666F722000
cbc cipher text
He pads the data with three more \0 at the end to get to 32.
Can you run that test vector against your library and see how it behaves?
More information about the pycrypto