open_nonce method

Uint8List open_nonce(
  1. Uint8List box,
  2. Uint8List theNonce
)

Implementation

Uint8List open_nonce(Uint8List box, Uint8List theNonce) {
  if (!(box != null && theNonce != null && theNonce.length == nonceLength))
    return null;

  // prepare shared key
  if (this._sharedKey == null) before();

  return open_after_len(box, 0, box.length, theNonce);
}