open_nonce_off method

Uint8List open_nonce_off(
  1. Uint8List box,
  2. int boxoff,
  3. Uint8List theNonce
)

Implementation

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

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

  return open_after_len(box, boxoff, box.length - boxoff, theNonce);
}