m_security library
Classes
- AesGcmService
- Chacha20Service
- CipherHandle
- CompressionConfig
- Configuration for a compress operation.
- CompressionService
- Compressed streaming file operations (compress+encrypt, decrypt+decompress).
- DefragResult
- Result of a vault defragmentation operation.
- HasherHandle
- MHKDF
- HKDF-SHA256 key derivation functions.
- RustLib
- Main entrypoint of the Rust API
- StreamingService
- Streaming file operations (encrypt, decrypt, hash).
- VaultCapacityInfo
- Capacity info returned to callers.
- VaultHandle
- VaultHealthInfo
- Vault health and diagnostic info returned to callers.
- VaultService
- Encrypted Virtual File System — named segment storage in a .vault container.
Enums
- Argon2Preset
- Platform-appropriate parameter presets for Argon2id.
- CompressionAlgorithm
- Which compression algorithm to use.
Functions
-
argon2IdHash(
{required String password, Argon2Preset preset = _defaultPreset}) → Future< String> - Hash a password using Argon2id.
-
argon2IdHashWithSalt(
{required String password, required String salt, Argon2Preset preset = _defaultPreset}) → Future< String> - Hash a password using Argon2id with an explicit salt.
-
argon2IdVerify(
{required String phcHash, required String password}) → Future< void> - Verify a password against an Argon2id PHC hash string.
-
blake3Hash(
{required List< int> data}) → Future<Uint8List> - One-shot BLAKE3 hash function.
-
createAes256Gcm(
{required List< int> key}) → Future<CipherHandle> - Create an AES-256-GCM cipher handle from a 32-byte key.
-
createBlake3(
) → Future< HasherHandle> - Create a BLAKE3 hasher handle.
-
createChacha20Poly1305(
{required List< int> key}) → Future<CipherHandle> - Create a ChaCha20-Poly1305 cipher handle from a 32-byte key.
-
createSha3(
) → Future< HasherHandle> - Create a SHA-3 hasher handle.
-
decrypt(
{required CipherHandle cipher, required List< int> ciphertext, required List<int> aad}) → Future<Uint8List> - Decrypt ciphertext using the given cipher handle.
-
encrypt(
{required CipherHandle cipher, required List< int> plaintext, required List<int> aad}) → Future<Uint8List> - Encrypt plaintext using the given cipher handle.
-
generateAes256GcmKey(
) → Future< Uint8List> - Generate a random 32-byte key for AES-256-GCM.
-
generateChacha20Poly1305Key(
) → Future< Uint8List> - Generate a random 32-byte key for ChaCha20-Poly1305.
-
hasherFinalize(
{required HasherHandle handle}) → Future< Uint8List> - Finalize and return the digest.
-
hasherReset(
{required HasherHandle handle}) → Future< void> - Reset the hasher to its initial state.
-
hasherUpdate(
{required HasherHandle handle, required List< int> data}) → Future<void> - Feed data into the hasher.
-
sha3Hash(
{required List< int> data}) → Future<Uint8List> - One-shot SHA-3 hash function.