diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-14 13:51:08 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-14 13:51:08 -0400 |
| commit | 660f92b6a7f91f9a4c53e0c40ce188a6f8878f04 (patch) | |
| tree | c41908584b00915a7d78293e32ed6a649aa9c618 /node/C25519.cpp | |
| parent | 09c8b4bbb37250df95ee898bcd6a0e090049d225 (diff) | |
| download | infinitytier-660f92b6a7f91f9a4c53e0c40ce188a6f8878f04.tar.gz infinitytier-660f92b6a7f91f9a4c53e0c40ce188a6f8878f04.zip | |
Add test vectors for ensuring identical C25519 operation across systems.
Diffstat (limited to 'node/C25519.cpp')
| -rw-r--r-- | node/C25519.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/C25519.cpp b/node/C25519.cpp index 69a0a2f2..06123c90 100644 --- a/node/C25519.cpp +++ b/node/C25519.cpp @@ -2151,6 +2151,10 @@ static void get_hram(unsigned char *hram, const unsigned char *sm, const unsigne SHA512::hash(hram,playground,(unsigned int)smlen); } +// This is the original sign and verify code -- the versions in sign() and +// verify() below the fold are slightly modified in terms of how they behave +// in relation to the message, but the algorithms are the same. + #if 0 int crypto_sign_keypair( unsigned char *pk, |
