Click or drag to resize

RsaEncodeMsgIso9796 Method

Encode a message using ISO/IEC 9796-1 formatting.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] EncodeMsgIso9796(
	byte[] message,
	int keyBits
)

Parameters

message  Byte
message to be encoded
keyBits  Int32
exact length of key in bits

Return Value

Byte
Padded message block ready for signing or an empty array on error
Remarks
The output block will be the same size as the key rounded up to the next whole byte. The message must be no longer than half the key length.
See Also