open_nonce_len method

Uint8List open_nonce_len(
  1. Uint8List box,
  2. int boxoff,
  3. int boxlen,
  4. Uint8List theNonce,
)

Implementation

Uint8List open_nonce_len(
    Uint8List box, final int boxoff, final int boxlen, Uint8List theNonce) {
  if (!(box != null &&
      box.length >= (boxoff + boxlen) &&
      theNonce != null &&
      theNonce.length == nonceLength)) return null;

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

  return open_after_len(box, boxoff, boxlen, theNonce);
}