algId.add(DERReader.read(params.getEncoded()));
algId.add (DERReader.read (params.getEncoded())); } else { algId.add (new DERValue (DER.NULL, null));
  private void encode() throws IOException  {    List algId = new ArrayList(2);    algId.add(new DERValue(DER.OBJECT_IDENTIFIER, algOid));    getAlgParameters();    if (params != null)      {        algId.add(DERReader.read(params.getEncoded()));      }    List epki = new ArrayList(2);    epki.add(new DERValue(DER.CONSTRUCTED|DER.SEQUENCE, algId));    epki.add(new DERValue(DER.OCTET_STRING, encryptedData));    encoded = new DERValue(DER.CONSTRUCTED|DER.SEQUENCE, epki).getEncoded();  }