AESCrypto.crypt_parse

Encrypt and Decrypt the data emplace

struct AESCrypto(int KEY_LENGTH)
static nothrow
void
crypt_parse
(
bool ENCRYPT = true
)
(
scope const(ubyte[]) key
,
ubyte[BLOCK_SIZE] iv
,
ref ubyte[] data
)
in (key.length is KEY_SIZE, __format("The key size must be %d bytes not %d", KEY_SIZE, key.length))

Parameters

key const(ubyte[])

the AES key

iv ubyte[BLOCK_SIZE]

initial value

data ubyte[]

Data to be de/encypted