cryptoAuthVerify static method
Implementation
static bool cryptoAuthVerify(Uint8List h, Uint8List i, Uint8List k) {
RangeError.checkValueInInterval(
h.length, cryptoAuthBytes, cryptoAuthBytes, 'h', 'Invalid length');
RangeError.checkValueInInterval(k.length, cryptoAuthKeybytes,
cryptoAuthKeybytes, 'k', 'Invalid length');
final _h = h.toPointer();
final _in = i.toPointer();
final _k = k.toPointer();
try {
return _cryptoAuth.crypto_auth_verify(_h, _in, i.length, _k) == 0;
} finally {
calloc.free(_h);
calloc.free(_in);
calloc.free(_k);
}
}