Class NativeVelocityCipher
java.lang.Object
com.velocitypowered.natives.encryption.NativeVelocityCipher
- All Implemented Interfaces:
Disposable,VelocityCipher,Native,Closeable,AutoCloseable
Implements AES-CFB8 encryption/decryption using a native library.
-
Field Details
-
FACTORY
-
-
Method Details
-
process
public void process(io.netty.buffer.ByteBuf source) Description copied from interface:VelocityCipherEncrypts the givenByteBufin-place.- Specified by:
processin interfaceVelocityCipher- Parameters:
source- the buffer to encrypt
-
close
public void close()Description copied from interface:DisposableDisposes 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDisposable
-
preferredBufferType
- Specified by:
preferredBufferTypein interfaceNative
-