Skip to content

Commit

Permalink
Added Curve25519-donna changes.
Browse files Browse the repository at this point in the history
Added a wrapper class that implements the following API calls which for
Curve25519.
+ ScalarMult to compute the shared key.
+ ScalarBaseMult to get public key.
+ ConvertToPrivateKey returns a private key from random bytes.

Per agl/wtc, grabbed the rev 234205ff from the git repo
(https://github.com/agl/curve25519-donna/tree/234205ff1ecaf6b3c1dc76798a462c4293f31fdb)
and checked it in to crypto/ because that version has pure Google copyright.

R=wtc@chromium.org,agl@chromium.org,rsleevi@chromium.org
TEST=crypto unit tests

Review URL: https://chromiumcodereview.appspot.com/12457004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187074 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rtenneti@chromium.org committed Mar 8, 2013
1 parent 45d1f56 commit b75d8e4
Show file tree
Hide file tree
Showing 5 changed files with 724 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/crypto.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@
'crypto_module_blocking_password_delegate.h',
'cssm_init.cc',
'cssm_init.h',
'curve25519.cc',
'curve25519.h',
'curve25519-donna.c',
'ghash.cc',
'ghash.h',
'ec_private_key.h',
Expand Down Expand Up @@ -262,6 +265,7 @@
'run_all_unittests.cc',

# Tests.
'curve25519_unittest.cc',
'ec_private_key_unittest.cc',
'ec_signature_creator_unittest.cc',
'encryptor_unittest.cc',
Expand Down
Loading

0 comments on commit b75d8e4

Please sign in to comment.