Companion

object Companion

Functions

decrypt
Link copied to clipboard
common
fun decrypt(ciphertext: ByteArray, key: ByteArray, nonce: ByteArray, counter: Int = 0): ByteArray
encrypt
Link copied to clipboard
common
fun encrypt(plaintext: ByteArray, key: ByteArray, nonce: ByteArray, counter: Int = 0): ByteArray

Properties

KEY_SIZE
Link copied to clipboard
common
const val KEY_SIZE: Int = 32
NONCE_SIZE_IETF
Link copied to clipboard
common
const val NONCE_SIZE_IETF: Int = 12
NONCE_SIZE_REF
Link copied to clipboard
common
const val NONCE_SIZE_REF: Int = 8