box_nonce_len method

Uint8List box_nonce_len(
  1. Uint8List message,
  2. int moff,
  3. int mlen,
  4. Uint8List theNonce,
)

Implementation

Uint8List box_nonce_len(
    Uint8List message, final int moff, final int mlen, Uint8List theNonce) {
  if (!(message != null &&
      message.length >= (moff + mlen) &&
      theNonce != null &&
      theNonce.length == nonceLength)) return null;

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

  return after_len(message, moff, mlen, theNonce);
}