fix: use header instead of nonce in EncryptionResult

This commit is contained in:
Prateek Sunal 2024-04-21 18:47:51 +05:30
parent 8fe87cc1e0
commit 5769634a50

View file

@ -46,7 +46,7 @@ class MultiPartUploader {
collectionKey,
encryptKeyNonce,
),
nonce: fileNonce,
header: fileNonce,
);
}
@ -111,7 +111,7 @@ class MultiPartUploader {
urls,
encryptedFilePath,
fileSize,
CryptoUtil.bin2base64(encryptedResult.key!),
CryptoUtil.bin2base64(encryptedResult.encryptedData!),
CryptoUtil.bin2base64(fileNonce),
CryptoUtil.bin2base64(encryptedResult.nonce!),
);