cryptoSignVerifyDetached static method
Implementation
static int cryptoSignVerifyDetached(
Uint8List sig, Uint8List m, Uint8List pk) {
RangeError.checkValueInInterval(
sig.length, cryptoSignBytes, cryptoSignBytes, 'sig', 'Invalid length');
RangeError.checkValueInInterval(pk.length, cryptoSignPublickeybytes,
cryptoSignPublickeybytes, 'pk', 'Invalid length');
final _sig = sig.toPointer();
final _m = m.toPointer();
final _pk = pk.toPointer();
try {
return _cryptoSign.crypto_sign_verify_detached(_sig, _m, m.length, _pk);
} finally {
calloc.free(_sig);
calloc.free(_m);
calloc.free(_pk);
}
}