decrypt

Decrypts data using the key 0x00. Key parameter is ignored.

Calls zgrf.crypto.des.decrypt2 with the subkeys function createSubkeys and the process function processBlock.

The data must be a multiple of 8 bytes long.

pure
ubyte[]
decrypt
(
const(ubyte)[] data
,
const(ubyte)[] key
,
const size_t unencryptedSize
)

Parameters

data const(ubyte)[]

The data array to be decrypted

key const(ubyte)[]

Ignored. Should be empty

unencryptedSize size_t

The size/length of the unencrypted data. The returning data will be truncated to this size if it has padding.

Return Value

Type: ubyte[]

An array of bytes containing the decrypted data

Meta