Rsa.EncodeDigestForSignature Method
Encode a message digest for signature.
Syntax
[C#]
public static byte[] EncodeDigestForSignature(
int keyBytes,
byte[] digest,
HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function EncodeDigestForSignature ( _
keyBytes As Integer, _
digest As Byte(), _
hashAlg As HashAlgorithm _
) As Byte()
Parameters
- keyBytes
- Number of bytes in the key
- digest
- Digest of message
- hashAlg
- Type: HashAlgorithm
Message digest algorithm used to create digest
Return Value
Encoded block
Remarks
Only EMSA-PKCS1-v1_5 is supported in this function.
See Also
VB6/C equivalent: RSA_EncodeMsg
[Contents] [Index]