Package net.dv8tion.jda.internal.audio
Class CryptoAdapter.XChaCha20Poly1305Adapter
java.lang.Object
net.dv8tion.jda.internal.audio.CryptoAdapter.AbstractAaedAdapter
net.dv8tion.jda.internal.audio.CryptoAdapter.XChaCha20Poly1305Adapter
- All Implemented Interfaces:
CryptoAdapter
- Enclosing interface:
CryptoAdapter
public static class CryptoAdapter.XChaCha20Poly1305Adapter
extends CryptoAdapter.AbstractAaedAdapter
implements CryptoAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.internal.audio.CryptoAdapter
CryptoAdapter.AbstractAaedAdapter, CryptoAdapter.AES_GCM_Adapter, CryptoAdapter.XChaCha20Poly1305Adapter
-
Field Summary
Fields inherited from interface net.dv8tion.jda.internal.audio.CryptoAdapter
AES_GCM_NO_PADDING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decryptInternally
(byte[] cipherText, byte[] associatedData, byte[] nonce) void
encryptInternally
(ByteBuffer output, ByteBuffer audio, byte[] nonce) getMode()
Methods inherited from class net.dv8tion.jda.internal.audio.CryptoAdapter.AbstractAaedAdapter
decrypt, encrypt
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.internal.audio.CryptoAdapter
decrypt, encrypt
-
Constructor Details
-
XChaCha20Poly1305Adapter
public XChaCha20Poly1305Adapter(byte[] secretKey)
-
-
Method Details
-
getMode
- Specified by:
getMode
in interfaceCryptoAdapter
-
encryptInternally
- Throws:
Exception
-
decryptInternally
public byte[] decryptInternally(byte[] cipherText, byte[] associatedData, byte[] nonce) throws Exception - Throws:
Exception
-