Argon2Parameters constructor

Argon2Parameters(
  1. int type,
  2. Uint8List _salt, {
  3. required int desiredKeyLength,
  4. Uint8List? secret,
  5. Uint8List? additional,
  6. int iterations = DEFAULT_ITERATIONS,
  7. int? memoryPowerOf2,
  8. int? memory,
  9. int lanes = DEFAULT_LANES,
  10. int version = DEFAULT_VERSION,
})

Implementation

Argon2Parameters(
  this.type,
  this._salt, {
  required this.desiredKeyLength,
  Uint8List? secret,
  Uint8List? additional,
  this.iterations = DEFAULT_ITERATIONS,
  int? memoryPowerOf2,
  int? memory,
  this.lanes = DEFAULT_LANES,
  this.version = DEFAULT_VERSION,
})  : memory = memoryPowerOf2 != null
          ? 1 << memoryPowerOf2
          : (memory ?? (1 << DEFAULT_MEMORY_COST)),
      _secret = secret,
      _additional = additional;