deriveKey abstract method

  1. @override
Future<SecretKeyData> deriveKey({
  1. required SecretKey secretKey,
  2. List<int> nonce = const <int>[],
  3. List<int> info = const <int>[],
})
override

Generates a new secret key from a secret key and a nonce.

The nonce ("salt") should be some random sequence of bytes. Nonce does not need to be protected. If possible, you should have a different nonce for each key derivation.

Implementation

@override
Future<SecretKeyData> deriveKey({
  required SecretKey secretKey,
  List<int> nonce = const <int>[],
  List<int> info = const <int>[],
});