docs: public DERObject toASN1Object()
      {
          ASN1EncodableVector v = new ASN1EncodableVector();
  
          v.add(new DERInteger(0));
          v.add(algId);
          v.add(new DEROctetString(privKey));
  
          if (attributes != null)
          {
              v.add(new DERTaggedObject(false, 0, attributes));
          }
  
          return new DERSequence(v);
      }