private int parseNonce(final byte[] b,final int off) throws ParseException {
  final int bytesToParseLen=b.length - off;
  if (bytesToParseLen >= nonceLength_) {
    nonce_=Arrays.copyOfRange(b,off,off + nonceLength_);
    return nonceLength_;
  }
 else {
    throw new ParseException("Not enough bytes to parse nonce");
  }
}

private int parseNonce ( final byte [ ] b , final int off ) throws ParseException { final int bytesToParseLen = b . length - off ; if ( bytesToParseLen >= nonceLength_ ) { nonce_ = Arrays . copyOfRange ( b , off , off + nonceLength_ ) ; return nonceLength_ ; } else { throw new ParseException ( "Not enough bytes to parse nonce" ) ; } }
parse the nonce in the provided bytes . it looks for bytes of size defined by the nonce length in the provided bytes starting at the specified off . < p > if successful , it returns the size of the parsed bytes which is the nonce length . on failure , it throws a parse exception .
