CmsMakeSigDataFromSigValue Method |
Create a CMS object of type SignedData using a pre-computed signature (advanced algorithms).
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int MakeSigDataFromSigValue(
string outputFile,
byte[] sigValue,
byte[] contentData,
string certList,
HashAlgorithm hashAlg = HashAlgorithm.Sha1,
CmsSigDataOptions advOptions = CmsSigDataOptions.Default
)
Public Shared Function MakeSigDataFromSigValue (
outputFile As String,
sigValue As Byte(),
contentData As Byte(),
certList As String,
Optional hashAlg As HashAlgorithm = HashAlgorithm.Sha1,
Optional advOptions As CmsSigDataOptions = CmsSigDataOptions.Default
) As Integer
Parameters
- outputFile String
- name of output file to be created
- sigValue Byte
- signature value
- contentData Byte
- string containing content data that has been signed
- certList String
- filename of the signer's
certificate and (optionally) a list of other certificates
to be included in the output, separated by semi-colons (;)
Alternatively specify a single PKCS#7 certificate chain file (.p7c/.p7b) containing the signer's certificate.
- hashAlg HashAlgorithm (Optional)
- Message digest algorithm to be used in signature [default=SHA-1]
- advOptions CmsSigDataOptions (Optional)
- Advanced option flags. See CmsSigDataOptions.
Return Value
Int32Zero if successful; otherwise it returns an
error code
RemarksRSASSA-PKCS1V1_5 only.
See Also