mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-29 17:58:36 -04:00
fixes
This commit is contained in:
parent
2d075626f1
commit
069926aba8
4 changed files with 22 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue