AESCrypto.crypt

Same as crypt_parse except that the indata is copied to outdata

struct AESCrypto(int KEY_LENGTH)
static pure nothrow @safe
void
crypt
(
bool ENCRYPT = true
)
(
scope const(ubyte[]) key
,
scope const(ubyte[]) iv
,
return scope const(ubyte[]) indata
,
ref ubyte[] outdata
)

Parameters

key const(ubyte[])

the AES key

iv const(ubyte[])

initial value

indata const(ubyte[])

input data

outdata ubyte[]

output data