cryptoOnetimeauth static method
Implementation
static Uint8List cryptoOnetimeauth(Uint8List i, Uint8List k) {
RangeError.checkValueInInterval(k.length, cryptoOnetimeauthKeybytes,
cryptoOnetimeauthKeybytes, 'k', 'Invalid length');
final _out = calloc<Uint8>(cryptoOnetimeauthBytes);
final _in = i.toPointer();
final _k = k.toPointer();
try {
_cryptoOnetimeauth
.crypto_onetimeauth(_out, _in, i.length, _k)
.mustSucceed('crypto_onetimeauth');
return _out.toList(cryptoOnetimeauthBytes);
} finally {
calloc.free(_out);
calloc.free(_in);
calloc.free(_k);
}
}