cipherbird_fips library

Validated-module cryptography for CipherBird: the approved operations (SHA-2, HMAC, HKDF, PBKDF2, DRBG, AES-256-GCM, P-256 ECDH and ECDSA) performed by the module the platform already validated, so a regulated app keeps them inside a CMVP boundary on every platform it ships to. Apple corecrypto behind CryptoKit on iOS and macOS, the Android platform providers on Android, and the OpenSSL FIPS Provider (certificate #4985) when the engine is built as the fips profile. Flutter only; the browser has no validated module.

final fips = DeviceFips.platform();
final info = await fips.module();
final tag = await fips.hmac(FipsHash.sha256, key, message);

Classes

DeviceFips
Approved operations routed through the validated module of the platform the app runs on: Apple corecrypto (CryptoKit) on iOS and macOS, the Android platform providers (Conscrypt, BoringCrypto) on Android, and the OpenSSL FIPS Provider (CMVP #4985) when the engine is the fips profile. Every call may throw a FipsException; module says what served it.
FipsBackend
The validated module behind the device FIPS facade. Every call may throw a FipsException. Hash ids follow FipsHash.
FipsModuleInfo
Which validated module performs the operations on this platform.
UnsupportedFipsBackend
A platform with no validated module reachable from this plugin: every call throws unsupported.

Exceptions / Errors

FipsException
A validated-module operation failed. code is stable across platforms: unsupported, authentication_failed, bad_argument or failed.