ddn.crypto.mac.poly1305
Poly1305 Message Authentication Code (RFC 7539).
class Poly1305
Types 1
Poly1305 Implementation.
One-time authenticator. Requires a 32-byte key (r, s).
Warning: The key (r, s) MUST NOT be reused for different messages. Typically, this key is derived from a master key and a nonce (e.g., in ChaCha20-Poly1305).
Fields
private BigInt _rprivate BigInt _sprivate BigInt _aprivate BigInt _pprivate ubyte[] _bufferprivate bool _initializedMethods
void initialize(const(ubyte)[] key)Initializes (or re-initializes) the Poly1305 MAC with the given key.void reset()ubyte[] finish()private
void processBlock(const(ubyte)[] block)private
BigInt bytesToBigIntLE(const(ubyte)[] bytes)