mnDecrypt

This command decrypts data using the Advanced Encryption Standard based on a key previously created by mnCreateKey256, mnCreateKey192 or mnCreateKey128.

The decryption process involves individually decrypting each 16 byte part of the packet. If the last part of the packet is not 16 bytes in size then an error will occur. If mnEncrypt completes successfully the packet should be of the correct size.

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.

Parameters

long long int Packet: Packet that the command should use.

long long int Key: Key that the command should use.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

C++

DBP

.Net




This page is in the following sections:
(2) Packets
(1) Miscellaneous
(0) DarkNet Help