diff --git a/native/src/main/c/NativeCipherImpl.cpp b/native/src/main/c/NativeCipherImpl.cpp index 1c2981dd..70aff5c8 100644 --- a/native/src/main/c/NativeCipherImpl.cpp +++ b/native/src/main/c/NativeCipherImpl.cpp @@ -6,7 +6,7 @@ typedef unsigned char byte; jlong JNICALL Java_net_md_15_bungee_NativeCipherImpl_init(JNIEnv* env, jobject obj, jboolean forEncryption, jbyteArray key) { jbyte *keyBytes = env->GetByteArrayElements(key, NULL); - EVP_CIPHER_CTX *cipherCtx = new EVP_CIPHER_CTX(); + EVP_CIPHER_CTX *cipherCtx = EVP_CIPHER_CTX_new(); EVP_CipherInit(cipherCtx, EVP_aes_128_cfb8(), (byte*) keyBytes, (byte*) keyBytes, forEncryption); env->ReleaseByteArrayElements(key, keyBytes, JNI_ABORT); diff --git a/native/src/main/resources/native-cipher.so b/native/src/main/resources/native-cipher.so index 9fd92de9..3bea4ebb 100755 Binary files a/native/src/main/resources/native-cipher.so and b/native/src/main/resources/native-cipher.so differ