Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

poly1305.cpp File Reference
#include <crypto/common.h>
#include <crypto/poly1305.h>
#include <string.h>
+ Include dependency graph for poly1305.cpp:

Go to the source code of this file.

Macros

#define mul32x32_64(a, b)   ((uint64_t)(a) * (b))
 

Functions

void poly1305_auth (unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN])
 

Macro Definition Documentation

◆ mul32x32_64

#define mul32x32_64 (   a,
 
)    ((uint64_t)(a) * (b))

Definition at line 13 of file poly1305.cpp.

Referenced by poly1305_auth().

Function Documentation

◆ poly1305_auth()

void poly1305_auth ( unsigned char  out[POLY1305_TAGLEN],
const unsigned char *  m,
size_t  inlen,
const unsigned char  key[POLY1305_KEYLEN] 
)

Definition at line 15 of file poly1305.cpp.

References mul32x32_64, ReadLE32(), and WriteLE32().

Referenced by ChaCha20Poly1305AEAD::Crypt(), and POLY1305().

Released under the MIT license