box_len method

Uint8List box_len(
  1. Uint8List message,
  2. int moff,
  3. int mlen
)

Implementation

Uint8List box_len(Uint8List message, final int moff, final int mlen) {
  // check message
  if (!(message != null && message.length >= (moff + mlen))) return null;
  return box_nonce_len(
      message, moff, message.length - moff, _generateNonce());
}