seed method

  1. @override
void seed(
  1. CipherParameters params
)
override

Seed the RNG with some entropy (look at package cipher_entropy providing entropy sources).

Implementation

@override
void seed(CipherParameters params) {
  _used = _output.length;
  if (params is ParametersWithIV) {
    _input.setAll(0, params.iv);
    cipher.init(true, params.parameters!);
  } else {
    cipher.init(true, params);
  }
}