Package moe.kyokobot.koe.internal.crypto
Class AEADAES256GCMEncryptionMode
java.lang.Object
moe.kyokobot.koe.internal.crypto.AEADAES256GCMEncryptionMode
- All Implemented Interfaces:
EncryptionMode
- Direct Known Subclasses:
AEADAES256GCMRTPSizeEncryptionMode
-
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
validateKey
-
Constructor Details
-
AEADAES256GCMEncryptionMode
public AEADAES256GCMEncryptionMode()
-
-
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
-
isRtpSize
public boolean isRtpSize()- Specified by:
isRtpSizein interfaceEncryptionMode- Returns:
- true if the header extension preamble is part of the unencrypted RTP header, false if it is encrypted along with the payload
-
getName
- Specified by:
getNamein interfaceEncryptionMode
-