Package moe.kyokobot.koe.internal.crypto
Class XSalsa20Poly1305SuffixEncryptionMode
java.lang.Object
moe.kyokobot.koe.internal.crypto.XSalsa20Poly1305SuffixEncryptionMode
- All Implemented Interfaces:
EncryptionMode
-
Field Summary
Fields inherited from interface moe.kyokobot.koe.internal.crypto.EncryptionMode
SECRET_KEY_LENGTH, SECURE_RANDOM, TAG_BYTES_LENGTH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface moe.kyokobot.koe.internal.crypto.EncryptionMode
isRtpSize, validateKey
-
Constructor Details
-
XSalsa20Poly1305SuffixEncryptionMode
public XSalsa20Poly1305SuffixEncryptionMode()
-
-
Method Details
-
box
public boolean box(io.netty.buffer.ByteBuf plain, int len, io.netty.buffer.ByteBuf output, byte[] secretKey) Description copied from interface:EncryptionModeEncryptslenbytes ofplainintooutput, which already holds the unencrypted part of the RTP header.- Specified by:
boxin interfaceEncryptionMode
-
getName
- Specified by:
getNamein interfaceEncryptionMode
-