PqFipsMode class abstract final

Process-wide FIPS policy switch. Enable once at startup, before any crypto.

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

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 Properties

isEnabled → bool
Whether FIPS restrictions are active.
no setter

Static Methods

disable() → void
Deactivates the policy (intended for tests).
enable() → void
Activates the policy. Irreversible by design in production flows; tests may call disable.
requireApprovedKdf(String kdf) → void
Throws unless kdf is FIPS-approved (PBKDF2-HMAC-SHA256) when the mode is on.
requireApprovedSuite(PqForgeCipherSuite suite) → void
Throws unless suite is FIPS-approved (AES-256-GCM) when the mode is on.