CryptoSys PKI Pro Manual

Rsa.EncodeDigestForSignature Method

Encode a message digest for signature.

Syntax

[C#]
public static byte[] EncodeDigestForSignature(
   int keyBytes,
   byte[] digest,
   HashAlgorithm hashAlg 
)
[VB]
Public Shared Function EncodeDigestForSignature (
   keyBytes As Integer,
   digest As Byte(),
   hashAlg As HashAlgorithm 
) As Byte()

Parameters

keyBytes  Int32
Number of bytes in the key
digest  Byte
Digest of message
hashAlg  HashAlgorithm
Message digest algorithm used to create digest

Return Value

Byte
Encoded block

Remarks

Only EMSA-PKCS1-v1_5 is supported in this function.

See Also

VB6/C equivalent: RSA_EncodeMsg

[Contents] [Index]

[PREV: Rsa.Decrypt Method...]   [Contents]   [Index]   
   [NEXT: Rsa.EncodeMsgForEncryption Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.