toggle menu
kord
0.16.0-SNAPSHOT
jvm
switch theme
search in API
kord-voice
/
dev.kord.voice.encryption
Package-level
declarations
Types
Functions
Types
XSalsa20Poly1305Codec
Link copied to clipboard
class
XSalsa20Poly1305Codec
(
val
key
:
ByteArray
)
Functions
decrypt
Link copied to clipboard
fun
XSalsa20Poly1305Codec
.
decrypt
(
box
:
ByteArray
,
boxOffset
:
Int
=
0
,
boxLength
:
Int
=
box.size
,
nonce
:
ByteArray
)
:
ByteArray
?
encrypt
Link copied to clipboard
fun
XSalsa20Poly1305Codec
.
encrypt
(
message
:
ByteArray
,
mOffset
:
Int
=
0
,
mLength
:
Int
=
message.size
,
nonce
:
ByteArray
)
:
ByteArray
?