Discuss this help topic in SecureBlackbox Forum

Access individual signatures in CMS

In general, a signed CMS may contain any number of signatures made over the same content by different signers . In practice, however, only one signature is allowed normally. SecureBlackbox supports unlimited number of indepedent signatures per message.

After a CMS is loaded (as described here) its signatures can be accessed via the TElSignedCMSMessage.Signatures[] property (this indexed property is emulated with the get_Signatures() method on certain platforms). Each signature is represented with a TElCMSSignature object which provides access to all signature properties:

for (int i = 0; i < cms.SignatureCount; i++) {
  Console.WriteLine("Signature " + (i + 1).ToString() + " was made on " + cms.get_Signatures(i).SigningTime.ToLongDateString());

How To articles about Cryptographic Message Syntax (CMS)

Discuss this help topic in SecureBlackbox Forum