mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-03 12:16:22 -04:00
improve route selection and add generate_shared_secret
This commit is contained in:
parent
d49e78d931
commit
800348451e
18 changed files with 317 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue