This commit is contained in:
Christien Rioux
2023-09-24 15:59:47 -04:00
parent 2d075626f1
commit 069926aba8
4 changed files with 22 additions and 1 deletions

View File

@@ -215,7 +215,8 @@ abstract class VeilidCryptoSystem {
final nonce = await randomNonce();
final saltBytes = nonce.decode();
final sharedSecret = await deriveSharedSecret(ekbytes, saltBytes);
return (await cryptNoAuth(body, nonce, sharedSecret))..addAll(saltBytes);
return Uint8List.fromList(
(await cryptNoAuth(body, nonce, sharedSecret)) + saltBytes);
}
Future<Uint8List> decryptNoAuthWithPassword(