Bitcoin Core
0.21.1
P2P Digital Currency
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
src
crypto
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
14
void
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
POLY1305_TAGLEN
#define POLY1305_TAGLEN
Definition:
poly1305.h:12
poly1305_auth
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
POLY1305_KEYLEN
#define POLY1305_KEYLEN
Definition:
poly1305.h:11
Generated on Fri Apr 30 2021 13:53:38 for Bitcoin Core by
1.8.8