Bitcoin Core 22.99.0
P2P Digital Currency
poly1305.h
Go to the documentation of this file.
1// Copyright (c) 2019 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_CRYPTO_POLY1305_H
6#define BITCOIN_CRYPTO_POLY1305_H
7
8#include <stdint.h>
9#include <stdlib.h>
10
11#define POLY1305_KEYLEN 32
12#define POLY1305_TAGLEN 16
13
14void poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen,
15 const unsigned char key[POLY1305_KEYLEN]);
16
17#endif // BITCOIN_CRYPTO_POLY1305_H
void poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN])
Definition: poly1305.cpp:15
#define POLY1305_KEYLEN
Definition: poly1305.h:11
#define POLY1305_TAGLEN
Definition: poly1305.h:12