mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
Test vectors for all new crypto.
This commit is contained in:
parent
660f92b6a7
commit
300d26973a
5 changed files with 36 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue