blob: 401ea569e8e9d54c4e71691485b529d954d76a03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Base64%20encoded%20output%20differs%20from%20pycrypto%0A%20and%09as3crypto%20libraries.&In-Reply-To=4D2E04BC.2070809%40amberfisharts.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000402.html">
<LINK REL="Next" HREF="000401.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.</H1>
<B>Thorsten Behrens</B>
<A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Base64%20encoded%20output%20differs%20from%20pycrypto%0A%20and%09as3crypto%20libraries.&In-Reply-To=4D2E04BC.2070809%40amberfisharts.com"
TITLE="[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.">sbehrens at gmx.li
</A><BR>
<I>Wed Jan 12 14:32:44 CST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="000402.html">[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
</A></li>
<LI>Next message: <A HREF="000401.html">[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#400">[ date ]</a>
<a href="thread.html#400">[ thread ]</a>
<a href="subject.html#400">[ subject ]</a>
<a href="author.html#400">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 =
Blowfish.new(binascii.a2b_hex('0123456789ABCDEFF0E1D2C3B4A59687'),Blowfish.MODE_CBC,binascii.a2b_hex('FEDCBA9876543210'))
>>> S =
binascii.a2b_hex('37363534333231204E6F77206973207468652074696D6520666F722000')
>>> 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
Thorsten
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000402.html">[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
</A></li>
<LI>Next message: <A HREF="000401.html">[pycrypto] Base64 encoded output differs from pycrypto and as3crypto libraries.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#400">[ date ]</a>
<a href="thread.html#400">[ thread ]</a>
<a href="subject.html#400">[ subject ]</a>
<a href="author.html#400">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto
mailing list</a><br>
</body></html>
|