XChaCha20Poly1305Codec

Constructors

Link copied to clipboard
constructor(key: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun decrypt(box: ByteArray, boxOffset: Int = 0, boxLength: Int = box.size, aad: ByteArray, aadOffset: Int = 0, aadLength: Int = aad.size, nonce: ByteArray, output: MutableByteArrayCursor): Boolean
Link copied to clipboard
fun encrypt(message: ByteArray, mOffset: Int = 0, mLength: Int = message.size, aad: ByteArray, aadOffset: Int = 0, aadLength: Int = aad.size, nonce: ByteArray, output: MutableByteArrayCursor): Boolean
Link copied to clipboard
suspend fun init()