diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-15 10:41:52 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-15 10:41:52 -0400 |
| commit | 300d26973a56b4b544fb4a29ec134fd600976d98 (patch) | |
| tree | 6fdd9e461412db40d9e3a408712d65c33d23d40f /node | |
| parent | 660f92b6a7f91f9a4c53e0c40ce188a6f8878f04 (diff) | |
| download | infinitytier-300d26973a56b4b544fb4a29ec134fd600976d98.tar.gz infinitytier-300d26973a56b4b544fb4a29ec134fd600976d98.zip | |
Test vectors for all new crypto.
Diffstat (limited to 'node')
| -rw-r--r-- | node/Poly1305.cpp | 2 | ||||
| -rw-r--r-- | node/Poly1305.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/node/Poly1305.cpp b/node/Poly1305.cpp index 542aab27..01f8de30 100644 --- a/node/Poly1305.cpp +++ b/node/Poly1305.cpp @@ -138,7 +138,7 @@ static int crypto_onetimeauth(unsigned char *out,const unsigned char *in,unsigne ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// -void Poly1305::mac(void *auth,const void *data,unsigned int len,const void *key) +void Poly1305::compute(void *auth,const void *data,unsigned int len,const void *key) throw() { crypto_onetimeauth((unsigned char *)auth,(const unsigned char *)data,len,(const unsigned char *)key); diff --git a/node/Poly1305.hpp b/node/Poly1305.hpp index afe7439f..94e6078d 100644 --- a/node/Poly1305.hpp +++ b/node/Poly1305.hpp @@ -52,7 +52,7 @@ public: * @param len Length of data to authenticate in bytes * @param key 32-byte one-time use key to authenticate data (must not be reused) */ - static void mac(void *auth,const void *data,unsigned int len,const void *key) + static void compute(void *auth,const void *data,unsigned int len,const void *key) throw(); }; |
