| ISignPKCS7getSignatureSize Method |
Compute the size of the signature produced by sign().
Namespace:
de.softpro.signdocsdk
Assembly:
SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntaxint 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_sha224, #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.
You might want to ignore this value for
ECDSA signatures as it might come from
the DigestMethod seed value, which is to
be used for RSA only.
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