You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
737 B

import 'dart:typed_data';
typedef ResolveLibrary = String Function(String baseName);
abstract class Argon2 {
/// forces loading of dynamic library on MacOS instead of assuming
/// argon2 was statically linked. (ie. flutter usage, vs dart usage)
static bool resolveLibraryForceDynamic = false;
Uint8List argon2(Argon2Arguments args);
Future<Uint8List> argon2Async(Argon2Arguments args);
}
class Argon2Arguments {
Argon2Arguments(this.key, this.salt, this.memory, this.iterations,
this.length, this.parallelism, this.type, this.version);
final Uint8List key;
final Uint8List salt;
final int memory;
final int iterations;
final int length;
final int parallelism;
final int type;
final int version;
}