Closed GoogleCodeExporter closed 9 years ago
This has been fixed in http://code.google.com/p/keyczar/source/detail?r=374
There were two problems, both due to leading zero bytes being mistakenly
dropped from
encoded data. The first was an unnecessary TrimBytes() call in Util.Xor.
The second was due to PyCrypto trimming off leading zeros. The first OAEP
decrypted
byte is expected to be a zero and we anticipated it being dropped. However, if
more
leading bytes happened to be be zero, they were dropped as well. The fix was to
check
the decrypted OAEP ciphertext size and add the leading zeros back.
Original comment by stevew...@gmail.com
on 16 Dec 2008 at 1:54
Original issue reported on code.google.com by
stevew...@gmail.com
on 3 Dec 2008 at 7:29