Package discord4j.voice.crypto
Class Xchacha20Poly1305EncryptionAdapter
java.lang.Object
discord4j.voice.crypto.Xchacha20Poly1305EncryptionAdapter
- All Implemented Interfaces:
EncryptionAdapter
-
Constructor Details
-
Xchacha20Poly1305EncryptionAdapter
- Throws:
GeneralSecurityException
-
-
Method Details
-
getNonceLength
public int getNonceLength()- Specified by:
getNonceLengthin interfaceEncryptionAdapter
-
encrypt
- Specified by:
encryptin interfaceEncryptionAdapter- Throws:
GeneralSecurityException
-
decrypt
- Specified by:
decryptin interfaceEncryptionAdapter- Throws:
GeneralSecurityException
-