summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 01:51:45 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 01:51:45 +0000
commitecbf289873708bcbaa35780063570e346faafd57 (patch)
tree524953253f35fb0c095f90aaff16a6103b5e8a18 /base
parentd5975c6b5d408767db7934347b7d4d137c657d30 (diff)
downloadchromium_src-ecbf289873708bcbaa35780063570e346faafd57.zip
chromium_src-ecbf289873708bcbaa35780063570e346faafd57.tar.gz
chromium_src-ecbf289873708bcbaa35780063570e346faafd57.tar.bz2
AutoFill credit cards should be encrypted on the Mac
These changes add encryption support on Mac for the Encryptor class. AES 128 bit is used for the encryption, and the auto-generated password is stored now in the Mac Keychain. This implies the Encryptor class on Mac can now block for user input, and can fail if access is denied. BUG=42038, 49131 TEST=EncryptorTest.CypherTextDiffers, EncryptorTest.DecryptError, EncryptorPasswordTest.* Review URL: http://codereview.chromium.org/2943014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/crypto/encryptor_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/crypto/encryptor_mac.cc b/base/crypto/encryptor_mac.cc
index 2baa499..d27c62e 100644
--- a/base/crypto/encryptor_mac.cc
+++ b/base/crypto/encryptor_mac.cc
@@ -51,7 +51,7 @@ bool Encryptor::Crypt(int /*CCOperation*/ op,
raw_key.Data, raw_key.Length,
iv_.data(),
input.data(), input.size(),
- WriteInto(output, output_size),
+ WriteInto(output, output_size+1),
output_size,
&output_size);
if (err) {