Bruno Warmling
2013-04-29 16:14:00 UTC
How can i set the document name of CMS Message?
I trying to use this code, but not work well.
byte[] textBytes = System.Text.Encoding.Unicode.GetBytes("test.pdf");
DerOctetString berOctetString = new DerOctetString(textBytes);
Org.BouncyCastle.Asn1.Cms.Attribute documentName = new Org.BouncyCastle.Asn1.Cms.Attribute(dnOid, new BerSet(berOctetString));
I trying to use this code, but not work well.
byte[] textBytes = System.Text.Encoding.Unicode.GetBytes("test.pdf");
DerOctetString berOctetString = new DerOctetString(textBytes);
Org.BouncyCastle.Asn1.Cms.Attribute documentName = new Org.BouncyCastle.Asn1.Cms.Attribute(dnOid, new BerSet(berOctetString));