[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
sbehrens at gmx.li
Wed Jan 12 14:52:52 CST 2011
Got it, Schneier padded his test vector with NULLs. Will retest.
On 1/12/2011 3:32 PM, Thorsten Behrens wrote:
> Hey Lorenz,
> I notice that we don't use Schneier's CBC test vector. All we use is ECB.
> I tried adding CBC, and got errors. Running it manually, I get errors.
> Can you sanity-check that I'm not doing something stupid. If I'm
> invoking it right and it's failing, we need to review the CBC code.
> >>> B =
> >>> S =
> >>> X = B.encrypt(S)
> Traceback (most recent call last):
> File "<stdin>", line 1, in<module>
> ValueError: Input strings must be a multiple of 8 in length
> pycrypto mailing list
> pycrypto at lists.dlitz.net
More information about the pycrypto