code: public static DerId decodeIdAndLength(ByteBuffer buf) {
          DerId id = DerId.decode(buf);
          DerUtils.decodeLength(buf);
          return id;
      }
docs: Decodes ID and length octets from a DER-encoded message.
  
  @param buf
  the buffer with the DER-encoded message
  @return the ID