XSalsa20Poly1305Codec

Deprecated

This is no longer used by Kord and all voice encryption modes using XSalsa20Poly1305 are no longer supported by Discord. This will be removed in the future.

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, nonce: ByteArray, output: MutableByteArrayCursor): Boolean
Link copied to clipboard
fun XSalsa20Poly1305Codec.decrypt(box: ByteArray, boxOffset: Int = 0, boxLength: Int = box.size, nonce: ByteArray): ByteArray?
Link copied to clipboard
fun encrypt(message: ByteArray, mOffset: Int = 0, mLength: Int = message.size, nonce: ByteArray, output: MutableByteArrayCursor): Boolean
Link copied to clipboard
fun XSalsa20Poly1305Codec.encrypt(message: ByteArray, mOffset: Int = 0, mLength: Int = message.size, nonce: ByteArray): ByteArray?