improve route selection and add generate_shared_secret

This commit is contained in:
Christien Rioux 2024-03-18 10:10:10 -04:00
parent d49e78d931
commit 800348451e
18 changed files with 317 additions and 6 deletions

View file

@ -156,6 +156,8 @@ abstract class VeilidCryptoSystem {
CryptoKind kind();
Future<SharedSecret> cachedDH(PublicKey key, SecretKey secret);
Future<SharedSecret> computeDH(PublicKey key, SecretKey secret);
Future<SharedSecret> generateSharedSecret(
PublicKey key, SecretKey secret, Uint8List domain);
Future<Uint8List> randomBytes(int len);
Future<int> defaultSaltLength();
Future<String> hashPassword(Uint8List password, Uint8List salt);