CipherWithModeAndPadding

class CipherWithModeAndPadding(val cipher: Cipher, val mode: CipherMode, val padding: CipherPadding, val iv: ByteArray? = null)

Constructors

Link copied to clipboard
constructor(cipher: Cipher, mode: CipherMode, padding: CipherPadding, iv: ByteArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val iv: ByteArray? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun decrypt(data: ByteArray, offset: Int = 0, len: Int = data.size - offset): ByteArray
Link copied to clipboard
fun encrypt(data: ByteArray, offset: Int = 0, len: Int = data.size - offset): ByteArray