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

Side by Side Diff: crypto/curve25519.cc

Issue 2457153003: Remove crypto/curve25519.h in favor of BoringSSL's. (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « crypto/curve25519.h ('k') | crypto/curve25519_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "crypto/curve25519.h"
6
7 #include <stdint.h>
8
9 #include "third_party/boringssl/src/include/openssl/curve25519.h"
10
11 namespace crypto {
12
13 namespace curve25519 {
14
15 bool ScalarMult(const uint8_t* private_key,
16 const uint8_t* peer_public_key,
17 uint8_t* shared_key) {
18 return !!X25519(shared_key, private_key, peer_public_key);
19 }
20
21 void ScalarBaseMult(const uint8_t* private_key, uint8_t* public_key) {
22 X25519_public_from_private(public_key, private_key);
23 }
24
25 } // namespace curve25519
26
27 } // namespace crypto
OLDNEW
« 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