Bitcoin Core 28.99.0
P2P Digital Currency
|
C++ wrapper with std::byte Span interface around poly1305_donna code. More...
#include <poly1305.h>
Public Member Functions | |
Poly1305 (Span< const std::byte > key) noexcept | |
Construct a Poly1305 object with a given 32-byte key. More... | |
Poly1305 & | Update (Span< const std::byte > msg) noexcept |
Process message bytes. More... | |
void | Finalize (Span< std::byte > out) noexcept |
Write authentication tag to 16-byte out. More... | |
Static Public Attributes | |
static constexpr unsigned | TAGLEN {16} |
Length of the output produced by Finalize(). More... | |
static constexpr unsigned | KEYLEN {32} |
Length of the keys expected by the constructor. More... | |
Private Attributes | |
poly1305_donna::poly1305_context | m_ctx |
C++ wrapper with std::byte Span interface around poly1305_donna code.
Definition at line 37 of file poly1305.h.
|
inlinenoexcept |
Construct a Poly1305 object with a given 32-byte key.
Definition at line 49 of file poly1305.h.
|
inlinenoexcept |
Write authentication tag to 16-byte out.
Definition at line 63 of file poly1305.h.
Process message bytes.
Definition at line 56 of file poly1305.h.
|
staticconstexpr |
Length of the keys expected by the constructor.
Definition at line 46 of file poly1305.h.
|
private |
Definition at line 39 of file poly1305.h.
|
staticconstexpr |
Length of the output produced by Finalize().
Definition at line 43 of file poly1305.h.