generateDerivedParameters method

  1. @override
KeyParameter generateDerivedParameters(
  1. int keySize
)
override

Generates a derived key with the given keySize in bytes.

Implementation

@override
KeyParameter generateDerivedParameters(int keySize) {
  if (keySize > digest.digestSize) {
    throw ArgumentError("Can't generate a derived key $keySize bytes long.");
  }

  var dKey = generateDerivedKey();

  return KeyParameter(dKey);
}