Generic MBEDTLS_ROOT

This commit is contained in:
Andrew Steinborn
2018-12-24 12:18:36 -05:00
parent 1c2235af5a
commit e690d88fa0
3 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,10 @@
package com.velocitypowered.natives.encryption;
public class MbedtlsAesImpl {
import java.security.GeneralSecurityException;
native long init(byte[] key);
class MbedtlsAesImpl {
native long init(byte[] key) throws GeneralSecurityException;
native void process(long ctx, long sourceAddress, int sourceLength, long destinationAddress,
boolean encrypt);