Compute an RSA signature.
Namespace: de.softpro.signdocsdkAssembly: SPSignDoc_4.1_DotNetLibd (in SPSignDoc_4.1_DotNetLibd.dll) Version: 1.0.5882.21462
Syntaxbyte[] sign(
ISource source,
Version version,
HashAlgorithm hashAlgorithm
)
Function sign (
source As ISource,
version As Version,
hashAlgorithm As HashAlgorithm
) As Byte()
array<unsigned char>^ sign(
ISource^ source,
Version version,
HashAlgorithm hashAlgorithm
)
abstract sign :
source : ISource *
version : Version *
hashAlgorithm : HashAlgorithm -> byte[]
Parameters
- source
- Type: de.softpro.signdocsdkISource
An object providing data to be hashed and signed. - version
- Type: de.softpro.signdocsdk.Enums.ESignRSAVersion
RSA version (#v_1_5 or #v_2_0). - hashAlgorithm
- Type: de.softpro.signdocsdk.Enums.ESignRSAHashAlgorithm
Hash algorithm (#ha_sha1, #ha_sha256, #ha_sha384, #ha_sha512, or #ha_ripemd160).
Return Value
Type:
Byte The RSA signature. This shall be just the result of the RSA
operation, not wrapped in an OCTET STRING.
See Also