DartArgon2State.constructor constructor
DartArgon2State.constructor({})
Implementation
DartArgon2State.constructor({
this.version = 19,
required this.mode,
required this.parallelism,
required this.memory,
required this.iterations,
required this.hashLength,
this.maxIsolates,
this.minBlocksPerSliceForEachIsolate,
this.blocksPerProcessingChunk,
}) {
checkSystemIsLittleEndian();
if (parallelism < 1) {
throw ArgumentError.value(parallelism, 'parallelism');
}
if (memory < 8 * parallelism) {
throw ArgumentError.value(memory, 'memory');
}
if (hashLength < 4) {
throw ArgumentError.value(hashLength, 'hashLength');
}
if (iterations < 1) {
throw ArgumentError.value(iterations, 'iterations');
}
}