tryLoad static method
Implementation
static BCryptAesGcm? tryLoad() {
if (_tried) return _cached;
_tried = true;
if (!Platform.isWindows) return null;
try {
final lib = DynamicLibrary.open('bcrypt.dll');
final inst = BCryptAesGcm._(lib);
if (inst._selfTest()) {
_cached = inst;
return inst;
}
} catch (_) {
// fall through to null
}
return null;
}