PkcsSignerInfoBuilderSign Method
Signs authenticated attributes.
Namespace: SysadminsLV.PKI.Cryptography.PkcsAssembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
public PkcsSignerInfo Sign(
ICryptSigner messageSigner,
byte[] content
)
Public Function Sign (
messageSigner As ICryptSigner,
content As Byte()
) As PkcsSignerInfo
public:
PkcsSignerInfo^ Sign(
ICryptSigner^ messageSigner,
array<unsigned char>^ content
)
member Sign :
messageSigner : ICryptSigner *
content : byte[] -> PkcsSignerInfo
- messageSigner ICryptSigner
-
Signer certificate to use in signing operations.
- content Byte
-
An optional content to sign. This parameter can be null if AuthenticatedAttributes contain Message Digest
attribute. If this attribute is not presented, content parameter cannot be null.
PkcsSignerInfoSigned signer info that can be added to signed CMS message.