CryptoSys PKI Pro Manual

Rsa.EncodeMsgIso9796 Method

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

Syntax

[C#]
public static byte[] EncodeMsgIso9796(
	byte[] message,
	int keyBits
)
[VB.NET]
Public Shared Function EncodeMsgIso9796 ( _
	message As Byte(), _
	keyBits As Integer _
) As Byte()

Parameters

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

Return Value

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

VB6/C equivalent: RSA_EncodeMsg

[Contents] [Index]

[PREV: Rsa.EncodeMsgForSignature Method...]   [Contents]   [Index]   
   [NEXT: Rsa.Encrypt Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.