Click or drag to resize
ISignPKCS7getSignatureSize Method
Compute the size of the signature produced by sign().

Namespace: de.softpro.signdocsdk
Assembly: SPSignDoc_4.1_DotNetLibd (in SPSignDoc_4.1_DotNetLibd.dll) Version: 1.0.5882.21462
Syntax
int getSignatureSize(
	bool detached,
	HashAlgorithm hashAlgorithm
)

Parameters

detached
Type: SystemBoolean
true for a detached signature, false for an encapsulated signature.
hashAlgorithm
Type: de.softpro.signdocsdk.Enums.ESignPKCS7HashAlgorithm
Hash algorithm to be used for signature: #ha_md5, #ha_sha1, #ha_sha256, #ha_sha384, #ha_sha512, or #ha_ripemd160. This parameter also determines the size of encapsulated data (20 octets for ha_sha1) if @a aDetached is false.

Return Value

Type: Int32
A positive number which is an upper limit to the number of octets required for the ASN.1-encoded signature (excluding any RFC 3161 timestamp), zero on error.
See Also