sign_len method

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

Implementation

Uint8List sign_len(Uint8List message, final int moff, final int mlen) {
  // check message
  if (!(message != null && message.length >= (moff + mlen))) return null;

  // signed message
  Uint8List sm = Uint8List(mlen + signatureLength);

  TweetNaclFast.crypto_sign(sm, -1, message, moff, mlen, _mySecretKey);

  return sm;
}