generateDerivedParametersWithIV method

  1. @override
ParametersWithIV<CipherParameters?> generateDerivedParametersWithIV(
  1. int keySize,
  2. int ivSize
)
override

Generates a derived key with the given keySize in bytes and a derived IV with the given ivSize.

Implementation

@override
ParametersWithIV generateDerivedParametersWithIV(int keySize, int ivSize) {
  var dKey = _generateDerivedKey(KEY_MATERIAL, keySize);

  var iv = _generateDerivedKey(IV_MATERIAL, ivSize);

  return ParametersWithIV(KeyParameter(dKey), iv);
}