toggle menu
kord
0.16.0-SNAPSHOT
jvm
switch theme
search in API
kord-voice
/
dev.kord.voice.encryption
/
XSalsa20Poly1305Codec
XSalsa20Poly1305Codec
class
XSalsa20Poly1305Codec
(
val
key
:
ByteArray
)
(
source
)
Members
Members & Extensions
Constructors
XSalsa20Poly1305Codec
Link copied to clipboard
constructor
(
key
:
ByteArray
)
Properties
key
Link copied to clipboard
val
key
:
ByteArray
Functions
decrypt
Link copied to clipboard
fun
decrypt
(
box
:
ByteArray
,
boxOffset
:
Int
=
0
,
boxLength
:
Int
=
box.size
,
nonce
:
ByteArray
,
output
:
MutableByteArrayCursor
)
:
Boolean
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
encrypt
(
message
:
ByteArray
,
mOffset
:
Int
=
0
,
mLength
:
Int
=
message.size
,
nonce
:
ByteArray
,
output
:
MutableByteArrayCursor
)
:
Boolean
encrypt
Link copied to clipboard
fun
XSalsa20Poly1305Codec
.
encrypt
(
message
:
ByteArray
,
mOffset
:
Int
=
0
,
mLength
:
Int
=
message.size
,
nonce
:
ByteArray
)
:
ByteArray
?