diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 17:17:26 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 17:17:26 +0000 |
commit | fbc97c595085bd98b432963b9a627610f5294052 (patch) | |
tree | e116cf7060e2f4488e230b435e9913b3510b6859 /base/crypto/rsa_private_key_unittest.cc | |
parent | 89b0c8dddfdc584e2e3a47b44f3b5fd856b31a1e (diff) | |
download | chromium_src-fbc97c595085bd98b432963b9a627610f5294052.zip chromium_src-fbc97c595085bd98b432963b9a627610f5294052.tar.gz chromium_src-fbc97c595085bd98b432963b9a627610f5294052.tar.bz2 |
Fix 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.
Review URL: http://codereview.chromium.org/141036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto/rsa_private_key_unittest.cc')
-rw-r--r-- | base/crypto/rsa_private_key_unittest.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/base/crypto/rsa_private_key_unittest.cc b/base/crypto/rsa_private_key_unittest.cc index c2b4819..397d50a 100644 --- a/base/crypto/rsa_private_key_unittest.cc +++ b/base/crypto/rsa_private_key_unittest.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/file_util.h" #include "base/crypto/rsa_private_key.h" #include "base/scoped_ptr.h" #include "testing/gtest/include/gtest/gtest.h" |