deriveKey abstract method

Future<SecretKey> deriveKey({
  1. required SecretKey secretKey,
  2. required List<int> nonce,
})

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

Future<SecretKey> deriveKey({
  required SecretKey secretKey,
  required List<int> nonce,
});