RsaEncodeMsgIso9796 Method |
Encode a message using ISO/IEC 9796-1 formatting.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static byte[] EncodeMsgIso9796(
byte[] message,
int keyBits
)
Public Shared Function EncodeMsgIso9796 (
message As Byte(),
keyBits As Integer
) As Byte()
Parameters
- message Byte
- message to be encoded
- keyBits Int32
- exact length of key in bits
Return Value
BytePadded message block ready for signing or an empty array on error
RemarksThe 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