impl/ns_crypto library

Classes

NSEncryptionLease
Keeps NativeCallable instances alive while an encrypted database is open.

Functions

aesGcmDecrypt(Uint8List key, Uint8List input) → Uint8List?
AES-256-GCM decrypt for aesGcmEncrypt output.
aesGcmEncrypt(Uint8List key, Uint8List plaintext) → Uint8List?
AES-256-GCM encrypt. Output layout: ciphertext + 16-byte tag.
deriveAesKey(List<int> keyMaterial) → Uint8List
Derive a 32-byte AES-256 key from arbitrary user key material.
secureZero(Uint8List bytes) → void
Overwrite bytes with zeros before releasing sensitive material.