deriveKey method
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<SecretKey> deriveKey(
{required SecretKey secretKey, required List<int> nonce}) {
final fallback = this.fallback;
if (fallback == null) {
throw UnsupportedError('Unsupported and no fallback');
}
return fallback.deriveKey(
secretKey: secretKey,
nonce: nonce,
);
}