AES

class AES

AES encryption/decryption methods.

Functions

Link copied to clipboard
open fun decryptCBC(key: Array<Byte>, data: Array<Byte>, iv: Array<Byte>, mode: AESPaddingMode): Array<Byte>
Decrypts a block of data using AES in Cipher Block Chaining (CBC) mode.
Link copied to clipboard
open fun decryptCTR(key: Array<Byte>, data: Array<Byte>, iv: Array<Byte>): Array<Byte>
Decrypts a block of data using AES in Counter (CTR) mode.
Link copied to clipboard
open fun encryptCBC(key: Array<Byte>, data: Array<Byte>, iv: Array<Byte>, mode: AESPaddingMode): Array<Byte>
Encrypts a block of Data using AES in Cipher Block Chaining (CBC) mode.
Link copied to clipboard
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.