Poly1305 class

The Poly1305 class represents an implementation of the Poly1305 one-time message authentication code (MAC).

Poly1305 is a fast and secure MAC algorithm used for data integrity verification and authentication. The algorithm produces a fixed-size digest of 16 bytes.

Constructors

Poly1305(List<int> key)
Constructor for the Poly1305 class.

Properties

digestLength int
The length of the Poly1305 digest (always 16 bytes).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean() Poly1305
Cleans up and resets the internal state of the Poly1305 instance.
digest() List<int>
Computes and returns the Poly1305 message authentication code (MAC) for the current state.
finish(List<int> mac, [int macpos = 0]) Poly1305
Finalizes the Poly1305 authentication process and computes the authentication code (MAC).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(List<int> data) Poly1305
Updates the Poly1305 authentication state with additional data from the given List<int>.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

auth(List<int> key, List<int> data) List<int>
Computes a Poly1305 authentication code (MAC) for the provided data using the given key.