This command encrypts data using the
Advanced Encryption Standard based on a key previously created by mnCreateKey256,
mnCreateKey192 or mnCreateKey128.
The encryption process involves individually
encrypting each 16 byte part of the packet. If the last part of the
packet is not 16 bytes in size then the used size will be expanded to
make up the difference. This means that the packet can increase by up
to 15 bytes in size. If there is not enough memory in the packet for
the used size to be increased then an error will occur.
The same key can be used on multiple packets and the same key must be used to encrypt as is used to decrypt if the process is to be completed properly.
long long int Packet: Packet that the command should use.
long long int Key: Key that the command should use.
0 if no error occurred.
-1 if an error occurred.
C++
DBP
.Net