Class NativeVelocityCipher

java.lang.Object
com.velocitypowered.natives.encryption.NativeVelocityCipher
All Implemented Interfaces:
Disposable, VelocityCipher, Native, Closeable, AutoCloseable

public class NativeVelocityCipher extends Object implements VelocityCipher
Implements AES-CFB8 encryption/decryption using a native library.
  • Field Details

  • Method Details

    • process

      public void process(io.netty.buffer.ByteBuf source)
      Description copied from interface: VelocityCipher
      Encrypts the given ByteBuf in-place.
      Specified by:
      process in interface VelocityCipher
      Parameters:
      source - the buffer to encrypt
    • close

      public void close()
      Description copied from interface: Disposable
      Disposes this object. After this call returns, any use of this object becomes invalid. Multiple calls to this function should be safe: there should be no side-effects once an object is disposed.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Disposable
    • preferredBufferType

      public BufferPreference preferredBufferType()
      Specified by:
      preferredBufferType in interface Native