PostQuantumCryptoFiles extension
File helpers (Dart VM / Flutter native only).
Methods
-
decryptFile(
String inputPath, String outputPath, {required EncryptionPrivateKey privateKey, Map< String, String> ? requiredContext, ProgressCallback? onProgress, CancellationToken? cancel}) → Future<void> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
DecryptsinputPathintooutputPath. -
encryptFile(
String inputPath, String outputPath, {required List< EncryptionPublicKey> recipients, Map<String, String> context = const {}, int chunkSize = defaultStreamChunkSize, ProgressCallback? onProgress, CancellationToken? cancel}) → Future<void> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
EncryptsinputPathintooutputPathwith bounded memory. -
manifestEntryForFile(
String baseDir, String relativePath) → Future< ManifestEntry> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
Computes a manifest entry for the file atbaseDir/relativePath. -
signFile(
String path, {required SigningPrivateKey privateKey, List< int> context = const [], Map<String, String> metadata = const {}}) → Future<DetachedSignature> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
Creates a detached signature for a file (streamed). -
verifyFile(
String path, {required DetachedSignature signature, required SigningPublicKey publicKey}) → Future< VerifiedSignature> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
Verifies a detached signature over a file (streamed). -
verifyManifestFiles(
SignedManifest manifest, String baseDir, {required SigningPublicKey publicKey}) → Future< VerifiedSignature> -
Available on PostQuantumCryptoEngine, provided by the PostQuantumCryptoFiles extension
Verifies the manifest signature, then every listed file underbaseDir. Throws SignatureVerificationException naming no content if a file is missing or differs.