init method

void init()

Implementation

void init() {
  List<int> seed = List.filled(
      this.entropy.length + this.nonce.length + this.pers.length, 0);
  seed.setRange(0, this.entropy.length, this.entropy);
  seed.setRange(this.entropy.length, this.entropy.length + this.nonce.length,
      this.nonce);
  seed.setRange(
      this.entropy.length + this.nonce.length, seed.length, this.pers);

  this.K = []..length = this.outLen ~/ 8;
  this.V = []..length = this.outLen ~/ 8;
  for (int i = 0; i < this.V.length; i++) {
    this.K[i] = 0x00;
    this.V[i] = 0x01;
  }
  this._update(seed);
  this._reseed = 1;
  this.reseedInterval = 0x1000000000000;

  /// 2^48
}