NonceGenerator class abstract

Abstract nonce generator interface to enable testing/mocking.

Implementers

Constructors

NonceGenerator.defaultGenerator()
Factory to obtain the default CSPRNG-backed generator.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextNonce() Uint8List
Returns a fresh 8-byte nonce from a cryptographically secure source.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

validate(Uint8List nonce) → void
Validates that nonce is exactly 8 bytes.