Poly1305.start

Initializes the Poly1305 MAC.

struct Poly1305(Cipher)
void
start
(
in ubyte[] key
,
in ubyte[] nonce = null
)
if (
(
isBlockCipher!Cipher &&
Cipher.blockSize == 16
)
||
is(Cipher == void)
)

Parameters

key
Type: ubyte[]

32 byte key.

nonce
Type: ubyte[]

16 byte nonce. Required if used with block cipher.

Meta