encryptCTR

open fun encryptCTR(key: Array<Byte>, data: Array<Byte>, iv: Array<Byte>): Array<Byte>

Encrypts a block of data using AES in Counter (CTR) mode.

Return

encrypted Data.

Parameters

key

encryption key Data, must be 16, 24, or 32 bytes long.

data

Data to encrypt.

iv

initialization vector Data.