aeadRandomNonce property

Uint8List get aeadRandomNonce

Generates a random nonce for AEAD.

Throws an AskarKeyException if nonce generation fails.

Implementation

Uint8List get aeadRandomNonce {
  try {
    return askarKeyAeadRandomNonce(localKeyHandle).getValueOrException();
  } catch (e) {
    throw AskarKeyException('Error generating random nonce: $e');
  }
}