Bitcoin ABC
0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 <cstdint>
9
#include <cstdlib>
10
11
#define POLY1305_KEYLEN 32
12
#define POLY1305_TAGLEN 16
13
14
void
poly1305_auth
(
uint8_t
out[
POLY1305_TAGLEN
],
const
uint8_t
*m,
size_t
inlen
,
15
const
uint8_t
key[
POLY1305_KEYLEN
]);
16
17
#endif
// BITCOIN_CRYPTO_POLY1305_H
POLY1305_KEYLEN
#define POLY1305_KEYLEN
Definition
poly1305.h:11
poly1305_auth
void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen, const uint8_t key[POLY1305_KEYLEN])
Definition
poly1305.cpp:15
POLY1305_TAGLEN
#define POLY1305_TAGLEN
Definition
poly1305.h:12
GetRand
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition
random.h:85
Generated on Sat Nov 23 2024 02:37:58 for Bitcoin ABC by
1.9.8