Class AEADAES256GCMEncryptionMode

java.lang.Object
moe.kyokobot.koe.internal.crypto.AEADAES256GCMEncryptionMode
All Implemented Interfaces:
EncryptionMode
Direct Known Subclasses:
AEADAES256GCMRTPSizeEncryptionMode

public class AEADAES256GCMEncryptionMode extends Object implements EncryptionMode
  • 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: EncryptionMode
      Encrypts len bytes of plain into output, which already holds the unencrypted part of the RTP header.
      Specified by:
      box in interface EncryptionMode
    • isRtpSize

      public boolean isRtpSize()
      Specified by:
      isRtpSize in interface EncryptionMode
      Returns:
      true if the header extension preamble is part of the unencrypted RTP header, false if it is encrypted along with the payload
    • getName

      public String getName()
      Specified by:
      getName in interface EncryptionMode