Click or drag to resize

RsaEncodeMsgForSignature Method

Encode a message for signature.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] EncodeMsgForSignature(
	int keyBytes,
	byte[] message,
	HashAlgorithm hashAlg
)

Parameters

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

Return Value

Byte
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