Commit c9c251d5 authored by rucifer1217@gmail.com's avatar rucifer1217@gmail.com

clean up code at crypto folder.

BUG=none

Review URL: https://codereview.chromium.org/407713002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284547 0039d316-1c4b-4281-b951-d872f2087c98
parent 4789e83b
...@@ -245,12 +245,12 @@ bool ECPrivateKey::ExportEncryptedPrivateKey( ...@@ -245,12 +245,12 @@ bool ECPrivateKey::ExportEncryptedPrivateKey(
}; };
SECKEYEncryptedPrivateKeyInfo* encrypted = PK11_ExportEncryptedPrivKeyInfo( SECKEYEncryptedPrivateKeyInfo* encrypted = PK11_ExportEncryptedPrivKeyInfo(
NULL, // Slot, optional. NULL, // Slot, optional.
SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_3KEY_TRIPLE_DES_CBC, SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_3KEY_TRIPLE_DES_CBC,
&password_item, &password_item,
key_, key_,
iterations, iterations,
NULL); // wincx. NULL); // wincx.
if (!encrypted) { if (!encrypted) {
DLOG(ERROR) << "PK11_ExportEncryptedPrivKeyInfo: " << PORT_GetError(); DLOG(ERROR) << "PK11_ExportEncryptedPrivKeyInfo: " << PORT_GetError();
......
...@@ -140,7 +140,6 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain { ...@@ -140,7 +140,6 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
int password_data_count() const { return password_data_count_; } int password_data_count() const { return password_data_count_; }
private: private:
// Type used for the keys in the std::map(s) and MockAppleKeychain items. // Type used for the keys in the std::map(s) and MockAppleKeychain items.
typedef uintptr_t MockKeychainItemType; typedef uintptr_t MockKeychainItemType;
......
...@@ -873,8 +873,7 @@ class NSSInitSingleton { ...@@ -873,8 +873,7 @@ class NSSInitSingleton {
if (db_slot) { if (db_slot) {
if (PK11_NeedUserInit(db_slot)) if (PK11_NeedUserInit(db_slot))
PK11_InitPin(db_slot, NULL, NULL); PK11_InitPin(db_slot, NULL, NULL);
} } else {
else {
LOG(ERROR) << "Error opening persistent database (" << modspec LOG(ERROR) << "Error opening persistent database (" << modspec
<< "): " << GetNSSErrorMessage(); << "): " << GetNSSErrorMessage();
} }
......
...@@ -149,7 +149,7 @@ void ReduceLarge(FieldElement* out, LargeFieldElement* inptr) { ...@@ -149,7 +149,7 @@ void ReduceLarge(FieldElement* out, LargeFieldElement* inptr) {
// Eliminate the term at 2*224 that we introduced while keeping the same // Eliminate the term at 2*224 that we introduced while keeping the same
// value mod p. // value mod p.
in[0] -= in[8]; // reflection off the "+1" term of p. in[0] -= in[8]; // reflection off the "+1" term of p.
(*out)[3] += static_cast<uint32>(in[8] & 0xffff) << 12; // "-2**96" term (*out)[3] += static_cast<uint32>(in[8] & 0xffff) << 12; // "-2**96" term
(*out)[4] += static_cast<uint32>(in[8] >> 16); // rest of "-2**96" term (*out)[4] += static_cast<uint32>(in[8] >> 16); // rest of "-2**96" term
// in[0] < 2**64 // in[0] < 2**64
// out[3] < 2**29 // out[3] < 2**29
...@@ -638,7 +638,7 @@ void Put224Bits(uint32* out, const uint32* in) { ...@@ -638,7 +638,7 @@ void Put224Bits(uint32* out, const uint32* in) {
out[0] = HostToNet32((in[6] >> 24) | (in[7] << 4)); out[0] = HostToNet32((in[6] >> 24) | (in[7] << 4));
} }
} // anonymous namespace } // anonymous namespace
namespace crypto { namespace crypto {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include <string>
#include <crypto/p224_spake.h> #include <crypto/p224_spake.h>
#include "base/logging.h" #include "base/logging.h"
...@@ -13,7 +14,6 @@ namespace { ...@@ -13,7 +14,6 @@ namespace {
bool RunExchange(P224EncryptedKeyExchange* client, bool RunExchange(P224EncryptedKeyExchange* client,
P224EncryptedKeyExchange* server) { P224EncryptedKeyExchange* server) {
for (;;) { for (;;) {
std::string client_message, server_message; std::string client_message, server_message;
client_message = client->GetMessage(); client_message = client->GetMessage();
......
...@@ -208,168 +208,168 @@ TEST(RSAPrivateKeyUnitTest, PublicKeyTest) { ...@@ -208,168 +208,168 @@ TEST(RSAPrivateKeyUnitTest, PublicKeyTest) {
// This test case verifies these two failures modes don't occur. // This test case verifies these two failures modes don't occur.
TEST(RSAPrivateKeyUnitTest, ShortIntegers) { TEST(RSAPrivateKeyUnitTest, ShortIntegers) {
const uint8 short_integer_with_high_bit[] = { const uint8 short_integer_with_high_bit[] = {
0x30, 0x82, 0x02, 0x77, 0x02, 0x01, 0x00, 0x30, 0x30, 0x82, 0x02, 0x77, 0x02, 0x01, 0x00, 0x30,
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82,
0x02, 0x61, 0x30, 0x82, 0x02, 0x5d, 0x02, 0x01, 0x02, 0x61, 0x30, 0x82, 0x02, 0x5d, 0x02, 0x01,
0x00, 0x02, 0x81, 0x81, 0x00, 0x92, 0x59, 0x32, 0x00, 0x02, 0x81, 0x81, 0x00, 0x92, 0x59, 0x32,
0x7d, 0x8e, 0xaf, 0x2e, 0xd5, 0xb2, 0x5c, 0x67, 0x7d, 0x8e, 0xaf, 0x2e, 0xd5, 0xb2, 0x5c, 0x67,
0xc8, 0x7d, 0x48, 0xb7, 0x84, 0x12, 0xd0, 0x76, 0xc8, 0x7d, 0x48, 0xb7, 0x84, 0x12, 0xd0, 0x76,
0xda, 0xe1, 0xa3, 0x1e, 0x40, 0x01, 0x14, 0x5c, 0xda, 0xe1, 0xa3, 0x1e, 0x40, 0x01, 0x14, 0x5c,
0xef, 0x26, 0x6e, 0x28, 0xa2, 0xf7, 0xa5, 0xb4, 0xef, 0x26, 0x6e, 0x28, 0xa2, 0xf7, 0xa5, 0xb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0x67, 0xd8, 0x30, 0x2a, 0x89, 0xce, 0xd0, 0xa7, 0x67, 0xd8,
0x45, 0x84, 0xb0 0x45, 0x84, 0xb0
}; };
const uint8 short_integer_without_high_bit[] = { const uint8 short_integer_without_high_bit[] = {
0x30, 0x82, 0x02, 0x76, 0x02, 0x01, 0x00, 0x30, 0x30, 0x82, 0x02, 0x76, 0x02, 0x01, 0x00, 0x30,
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82,
0x02, 0x60, 0x30, 0x82, 0x02, 0x5c, 0x02, 0x01, 0x02, 0x60, 0x30, 0x82, 0x02, 0x5c, 0x02, 0x01,
0x00, 0x02, 0x81, 0x81, 0x00, 0xc3, 0x9e, 0x8d, 0x00, 0x02, 0x81, 0x81, 0x00, 0xc3, 0x9e, 0x8d,
0xc4, 0x6d, 0x38, 0xe8, 0x0e, 0x9f, 0x84, 0x03, 0xc4, 0x6d, 0x38, 0xe8, 0x0e, 0x9f, 0x84, 0x03,
0x40, 0x8e, 0x81, 0x2e, 0x56, 0x67, 0x78, 0x11, 0x40, 0x8e, 0x81, 0x2e, 0x56, 0x67, 0x78, 0x11,
0x85, 0x27, 0x81, 0x52, 0xf2, 0x1b, 0x3e, 0x5b, 0x85, 0x27, 0x81, 0x52, 0xf2, 0x1b, 0x3e, 0x5b,
0xf8, 0xab, 0xfc, 0xaf, 0xca, 0x5c, 0x26, 0xd5, 0xf8, 0xab, 0xfc, 0xaf, 0xca, 0x5c, 0x26, 0xd5,
0xfa, 0xd4, 0x55, 0x50, 0x38, 0xb9, 0x9d, 0x89, 0xfa, 0xd4, 0x55, 0x50, 0x38, 0xb9, 0x9d, 0x89,
0x92, 0x7e, 0x34, 0xcf, 0x37, 0x82, 0x48, 0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e, 0x68, 0x0c, 0xda, 0xdb, 0xe3, 0xd2, 0x76, 0x8e,
0xff, 0x03, 0x12, 0x09, 0x2a, 0xac, 0x21, 0x44, 0xff, 0x03, 0x12, 0x09, 0x2a, 0xac, 0x21, 0x44,
0xb7, 0x3e, 0x91, 0x9c, 0x09, 0xf6, 0xd7, 0x02, 0xb7, 0x3e, 0x91, 0x9c, 0x09, 0xf6, 0xd7, 0x02,
0x41, 0x00, 0xc0, 0xa1, 0xbb, 0x70, 0xdc, 0xf8, 0x41, 0x00, 0xc0, 0xa1, 0xbb, 0x70, 0xdc, 0xf8,
0xeb, 0x17, 0x61, 0xd4, 0x8c, 0x7c, 0x3b, 0x82, 0xeb, 0x17, 0x61, 0xd4, 0x8c, 0x7c, 0x3b, 0x82,
0x91, 0x58, 0xff, 0xf9, 0x19, 0xac, 0x3a, 0x73, 0x91, 0x58, 0xff, 0xf9, 0x19, 0xac, 0x3a, 0x73,
0xa7, 0x20, 0xe5, 0x22, 0x02, 0xc4, 0xf6, 0xb9, 0xa7, 0x20, 0xe5, 0x22, 0x02, 0xc4, 0xf6, 0xb9,
0xb9, 0x43, 0x53, 0x35, 0x88, 0xe1, 0x05, 0xb6, 0xb9, 0x43, 0x53, 0x35, 0x88, 0xe1, 0x05, 0xb6,
0x43, 0x9b, 0x39, 0xc8, 0x04, 0x4d, 0x2b, 0x01, 0x43, 0x9b, 0x39, 0xc8, 0x04, 0x4d, 0x2b, 0x01,
0xf7, 0xe6, 0x1b, 0x8d, 0x7e, 0x89, 0xe3, 0x43, 0xf7, 0xe6, 0x1b, 0x8d, 0x7e, 0x89, 0xe3, 0x43,
0xd4, 0xf3, 0xab, 0x28, 0xd4, 0x5a, 0x1f, 0x20, 0xd4, 0xf3, 0xab, 0x28, 0xd4, 0x5a, 0x1f, 0x20,
0xea, 0xbe 0xea, 0xbe
}; };
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include "crypto/secure_hash.h" #include "crypto/secure_hash.h"
#include <string>
#include "base/basictypes.h" #include "base/basictypes.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/pickle.h" #include "base/pickle.h"
......
...@@ -5,10 +5,9 @@ ...@@ -5,10 +5,9 @@
#ifndef CRYPTO_SIGNATURE_CREATOR_H_ #ifndef CRYPTO_SIGNATURE_CREATOR_H_
#define CRYPTO_SIGNATURE_CREATOR_H_ #define CRYPTO_SIGNATURE_CREATOR_H_
#include "build/build_config.h"
#include <vector> #include <vector>
#include "build/build_config.h"
#include "base/basictypes.h" #include "base/basictypes.h"
#include "crypto/crypto_export.h" #include "crypto/crypto_export.h"
......
...@@ -5,10 +5,9 @@ ...@@ -5,10 +5,9 @@
#ifndef CRYPTO_SIGNATURE_VERIFIER_H_ #ifndef CRYPTO_SIGNATURE_VERIFIER_H_
#define CRYPTO_SIGNATURE_VERIFIER_H_ #define CRYPTO_SIGNATURE_VERIFIER_H_
#include "build/build_config.h"
#include <vector> #include <vector>
#include "build/build_config.h"
#include "base/basictypes.h" #include "base/basictypes.h"
#include "crypto/crypto_export.h" #include "crypto/crypto_export.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment