cryptoSignFinalVerify static method
Implementation
static int cryptoSignFinalVerify(
Pointer<Uint8> state, Uint8List sig, 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 _pk = pk.toPointer();
try {
return _cryptoSign.crypto_sign_final_verify(state, _sig, _pk);
} finally {
// note: caller is responsible for freeing state
calloc.free(_sig);
calloc.free(_pk);
}
}