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

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