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

Unified Diff: crypto/curve25519.cc

Issue 2457153003: Remove crypto/curve25519.h in favor of BoringSSL's. (Closed)
Patch Set: rebase Created 3 years, 11 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/curve25519.h ('k') | crypto/curve25519_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/curve25519.cc
diff --git a/crypto/curve25519.cc b/crypto/curve25519.cc
deleted file mode 100644
index e540927901681b53796e2988382fbd3e70822953..0000000000000000000000000000000000000000
--- a/crypto/curve25519.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 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/curve25519.h"
-
-#include <stdint.h>
-
-#include "third_party/boringssl/src/include/openssl/curve25519.h"
-
-namespace crypto {
-
-namespace curve25519 {
-
-bool ScalarMult(const uint8_t* private_key,
- const uint8_t* peer_public_key,
- uint8_t* shared_key) {
- return !!X25519(shared_key, private_key, peer_public_key);
-}
-
-void ScalarBaseMult(const uint8_t* private_key, uint8_t* public_key) {
- X25519_public_from_private(public_key, private_key);
-}
-
-} // namespace curve25519
-
-} // namespace crypto
« no previous file with comments | « crypto/curve25519.h ('k') | crypto/curve25519_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698