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

Unified Diff: crypto/secure_util.cc

Issue 956613002: Reland "Cut down /crypto and switch what is left of it to boringssl". (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 10 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/secure_util.h ('k') | crypto/signature_creator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/secure_util.cc
diff --git a/crypto/secure_util.cc b/crypto/secure_util.cc
deleted file mode 100644
index 3fe8aa961a027e6c0c387585af0b25fd2e722ee1..0000000000000000000000000000000000000000
--- a/crypto/secure_util.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "crypto/secure_util.h"
-
-namespace crypto {
-
-bool SecureMemEqual(const void* s1, const void* s2, size_t n) {
- const unsigned char* s1_ptr = reinterpret_cast<const unsigned char*>(s1);
- const unsigned char* s2_ptr = reinterpret_cast<const unsigned char*>(s2);
- unsigned char tmp = 0;
- for (size_t i = 0; i < n; ++i, ++s1_ptr, ++s2_ptr)
- tmp |= *s1_ptr ^ *s2_ptr;
- return (tmp == 0);
-}
-
-} // namespace crypto
-
« no previous file with comments | « crypto/secure_util.h ('k') | crypto/signature_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698