cryptoSecretstreamXchacha20poly1305Keygen static method

Uint8List cryptoSecretstreamXchacha20poly1305Keygen()

Implementation

static Uint8List cryptoSecretstreamXchacha20poly1305Keygen() {
  final _k = calloc<Uint8>(cryptoSecretstreamXchacha20poly1305Keybytes);
  try {
    _cryptoSecretStream.crypto_secretstream_xchacha20poly1305_keygen(_k);
    return _k.toList(cryptoSecretstreamXchacha20poly1305Keybytes);
  } finally {
    calloc.free(_k);
  }
}