Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Unified Diff: crypto/p224_spake.cc

Issue 10698177: Added crypto random-number generator (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed #include/base:: problem Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/openpgp_symmetric_encryption.cc ('k') | crypto/random.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/p224_spake.cc
diff --git a/crypto/p224_spake.cc b/crypto/p224_spake.cc
index af3c2b8731e024adcb607de44987bda953f38bac..eccc737d29b143d8081cf6d74afb675ddd79bb70 100644
--- a/crypto/p224_spake.cc
+++ b/crypto/p224_spake.cc
@@ -8,8 +8,8 @@
#include <crypto/p224_spake.h>
#include <base/logging.h>
-#include <base/rand_util.h>
#include <crypto/p224.h>
+#include <crypto/random.h>
#include <crypto/secure_util.h>
namespace {
@@ -103,7 +103,7 @@ P224EncryptedKeyExchange::P224EncryptedKeyExchange(
memset(&expected_authenticator_, 0, sizeof(expected_authenticator_));
// x_ is a random scalar.
- base::RandBytes(x_, sizeof(x_));
+ RandBytes(x_, sizeof(x_));
// X = g**x_
p224::Point X;
« no previous file with comments | « crypto/openpgp_symmetric_encryption.cc ('k') | crypto/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698