Rsa.EncodeMsgForSignature Method
Encode a message for signature.
Syntax
[C#]
public static byte[] EncodeMsgForSignature(
int keyBytes,
byte[] message,
HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function EncodeMsgForSignature ( _
keyBytes As Integer, _
message As Byte(), _
hashAlg As HashAlgorithm _
) As Byte()
Parameters
- keyBytes
- Number of bytes in the key
- message
- Message to be encoded
- hashAlg
- Type: 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]