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 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
kdfis FIPS-approved (PBKDF2-HMAC-SHA256) when the mode is on. -
requireApprovedSuite(
PqForgeCipherSuite suite) → void -
Throws unless
suiteis FIPS-approved (AES-256-GCM) when the mode is on.