summaryrefslogtreecommitdiffstats
path: root/base/crypto
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 18:29:42 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 18:29:42 +0000
commit37199a82379c63b9daad59ba5bfb9ab99f23f7b9 (patch)
tree9ba5ed1b507fcc5d4882598760e16d8b3f69f4ef /base/crypto
parent394337cffb08b083513f3f93c7137aea788af5fa (diff)
downloadchromium_src-37199a82379c63b9daad59ba5bfb9ab99f23f7b9.zip
chromium_src-37199a82379c63b9daad59ba5bfb9ab99f23f7b9.tar.gz
chromium_src-37199a82379c63b9daad59ba5bfb9ab99f23f7b9.tar.bz2
Switch base to using CHECK_*.
Review URL: http://codereview.chromium.org/660357 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto')
-rw-r--r--base/crypto/rsa_private_key.cc2
-rw-r--r--base/crypto/rsa_private_key_win.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/base/crypto/rsa_private_key.cc b/base/crypto/rsa_private_key.cc
index 0c83b37..8b88b84 100644
--- a/base/crypto/rsa_private_key.cc
+++ b/base/crypto/rsa_private_key.cc
@@ -71,7 +71,7 @@ void PrivateKeyInfoCodec::PrependLength(size_t size, std::list<uint8>* data) {
size >>= 8;
num_bytes++;
}
- CHECK(num_bytes <= 4);
+ CHECK_LE(num_bytes, 4);
data->push_front(0x80 | num_bytes);
}
}
diff --git a/base/crypto/rsa_private_key_win.cc b/base/crypto/rsa_private_key_win.cc
index 3683d86..870d650 100644
--- a/base/crypto/rsa_private_key_win.cc
+++ b/base/crypto/rsa_private_key_win.cc
@@ -171,7 +171,7 @@ bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) {
pki.public_exponent()->assign(reinterpret_cast<uint8*>(&rsa_pub_key->pubexp),
reinterpret_cast<uint8*>(&rsa_pub_key->pubexp) + 4);
- CHECK((pos - blob_length) == reinterpret_cast<BYTE*>(publickey_struct));
+ CHECK_EQ(pos - blob_length, reinterpret_cast<BYTE*>(publickey_struct));
return pki.Export(output);
}