Poly1305

Poly1305 MAC.

@safe nothrow @nogc
struct Poly1305 (
Cipher
) if (
(
isBlockCipher!Cipher &&
Cipher.blockSize == 16
)
||
is(Cipher == void)
) {
enum name;
enum name;
enum macSize;
Cipher cipher;
}

Destructor

~this
~this()

Wipe sensitive data.

Members

Functions

reset
void reset()

Resets the internal state such that a new MAC can be computed.

start
void start(in ubyte[] key, in ubyte[] nonce = null)

Initializes the Poly1305 MAC.

Meta