sealOpen static method

Uint8List sealOpen({
  1. required Key recipientKey,
  2. required Uint8List ciphertext,
})

Decrypts a sealed crypto box.

Implementation

static Uint8List sealOpen({required Key recipientKey, required Uint8List ciphertext}) {
  try {
    return askarKeyCryptoBoxSealOpen(
      recipientKey.handle,
      ciphertext,
    ).getValueOrException();
  } catch (e) {
    throw AskarKeyException('Error on crypto box seal open: $e');
  }
}