CryptoSys PKI Pro Manual

Rsa.EncodeMsgForSignature Method

Encode a message for signature.

Syntax

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

Parameters

keyBytes  Int32
Number of bytes in the key
message  Byte
Message to be encoded
hashAlg  HashAlgorithm
Message digest algorithm to use

Return Value

Encoded block

Remarks

Only EMSA-PKCS1-v1_5 is supported in this function. Note we can only ever recover the digest from the encoded block.

See Also

VB6/C equivalent: RSA_EncodeMsg

[Contents] [Index]

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

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-17T11:18:15Z.