Chromium Code Reviews
DescriptionFix decoding bug in RSAPrivateKey.
We were dropping the most significant byte from the input when
decoding PrivateKeyInfo, whether or not it was part of the
original data. This shouldn't matter, except that we need to
get back the original byte lengths so that we can give them to
CryptoAPI.
BUG=14877
TEST=Stress tested the functions by creating 1000 random private keys, exporting them, then re-importing. Also tried stressing the edge cases in particular around extra trailing null bytes.
Patch Set 1 #Patch Set 2 : Cleanup #Patch Set 3 : more cleanup #Patch Set 4 : Simpler fix #Patch Set 5 : Simpler fix #
Total comments: 4
Messages
Total messages: 7 (0 generated)
|