AESEncryption.SetKey
Sets a key for use when encrypting data for specified remote side.
[C++]
void SetKey(char* Remote, DynArray* Value);
[Pascal]
procedure SetKey(Remote : string; Key : ByteArray);
[VB6]
Sub SetKey(Remote As String, Key)
[ActiveX]
HRESULT _stdcall SetKey([in] BSTR Remote, [in] SAFEARRAY(byte) Key );
[C#]
public void SetKey (string Remote, Byte[] Value);
[VB.NET]
Public Sub SetKey(ByVal Remote As String, ByVal Value As Byte())
[Java]
public void setKey (String Remote, byte[] value);
[Java ME]
public void SetKey (string Remote, byte[] value);
[Palm]
void SetKey(char* Remote, DynArray* Value);
[DLL]
void __stdcall MCAESEncryptionSetKey(HMCAESEncryption h, char* Remote, void* key, long KeyLength);
- [DLL]h - handle to the AESEncryption object that was returned by Create method
- Remote - The address and port of remote side as specified when sending the message in the form <address>:<port>
- Key - Encryption key. The length of the key can be 16, 24 or 32 bytes
- KeyLength - Length of the memory block pointed by Key
Use this method to specify the key for encryption/decryption of the message. Remote is the address and port of the message destination as specified in the call to SendMessage*/PostMessage method. Use empty value for remote to set the default key (the one that is used when the key for given destination is not found).
|