Package org.apache.commons.crypto.jna
Class OpenSslNativeJna
java.lang.Object
org.apache.commons.crypto.jna.OpenSslNativeJna
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Throwable(package private) static final booleanprivate static final OpenSslInterfaceNativeJna(package private) static final int(package private) static final int(package private) static final int(package private) static final longFull version from JNA call.(package private) static final long(package private) static final long(package private) static final long(package private) static final long(package private) static final longMajor Minor version from JNA call, without the maintenance level. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.ptr.PointerByReferenceENGINE_by_id(String string) static intstatic intENGINE_finish(com.sun.jna.ptr.PointerByReference rdrandEngine) static intENGINE_free(com.sun.jna.ptr.PointerByReference rdrandEngine) static intENGINE_init(com.sun.jna.ptr.PointerByReference rdrandEngine) static voidstatic intENGINE_set_default(com.sun.jna.ptr.PointerByReference rdrandEngine, int eNGINE_METHOD_RAND) static StringERR_error_string(com.sun.jna.NativeLong err, char[] object) static com.sun.jna.NativeLongstatic com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReferencestatic voidEVP_CIPHER_CTX_cleanup(com.sun.jna.ptr.PointerByReference context) static voidEVP_CIPHER_CTX_free(com.sun.jna.ptr.PointerByReference context) static com.sun.jna.ptr.PointerByReferencestatic intEVP_CIPHER_CTX_set_padding(com.sun.jna.ptr.PointerByReference context, int padding) static intEVP_CipherFinal_ex(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen) static intEVP_CipherInit_ex(com.sun.jna.ptr.PointerByReference context, com.sun.jna.ptr.PointerByReference algo, Object object, byte[] encoded, byte[] iv, int cipherMode) static intEVP_CipherUpdate(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen, ByteBuffer inBuffer, int remaining) static StringOpenSSLVersion(int i) static intRAND_bytes(ByteBuffer buf, int length) static com.sun.jna.ptr.PointerByReferencestatic com.sun.jna.ptr.PointerByReference
-
Field Details
-
OPENSSL_INIT_ENGINE_RDRAND
static final int OPENSSL_INIT_ENGINE_RDRAND- See Also:
-
OOSL_JNA_ENCRYPT_MODE
static final int OOSL_JNA_ENCRYPT_MODE- See Also:
-
OOSL_JNA_DECRYPT_MODE
static final int OOSL_JNA_DECRYPT_MODE- See Also:
-
INIT_OK
static final boolean INIT_OK -
INIT_ERROR
-
VERSION
static final long VERSIONFull version from JNA call. -
VERSION_X_Y
static final long VERSION_X_YMajor Minor version from JNA call, without the maintenance level. -
VERSION_1_0_X
static final long VERSION_1_0_X- See Also:
-
VERSION_1_1_X
static final long VERSION_1_1_X- See Also:
-
VERSION_2_0_X
static final long VERSION_2_0_X- See Also:
-
VERSION_3_0_X
static final long VERSION_3_0_X- See Also:
-
JnaImplementation
-
-
Constructor Details
-
OpenSslNativeJna
private OpenSslNativeJna()
-
-
Method Details
-
ENGINE_by_id
-
ENGINE_cleanup
public static int ENGINE_cleanup() -
ENGINE_finish
public static int ENGINE_finish(com.sun.jna.ptr.PointerByReference rdrandEngine) -
ENGINE_free
public static int ENGINE_free(com.sun.jna.ptr.PointerByReference rdrandEngine) -
ENGINE_init
public static int ENGINE_init(com.sun.jna.ptr.PointerByReference rdrandEngine) -
ENGINE_load_rdrand
public static void ENGINE_load_rdrand() -
ENGINE_set_default
public static int ENGINE_set_default(com.sun.jna.ptr.PointerByReference rdrandEngine, int eNGINE_METHOD_RAND) -
ERR_error_string
-
ERR_peek_error
public static com.sun.jna.NativeLong ERR_peek_error() -
EVP_aes_128_cbc
public static com.sun.jna.ptr.PointerByReference EVP_aes_128_cbc() -
EVP_aes_128_ctr
public static com.sun.jna.ptr.PointerByReference EVP_aes_128_ctr() -
EVP_aes_192_cbc
public static com.sun.jna.ptr.PointerByReference EVP_aes_192_cbc() -
EVP_aes_192_ctr
public static com.sun.jna.ptr.PointerByReference EVP_aes_192_ctr() -
EVP_aes_256_cbc
public static com.sun.jna.ptr.PointerByReference EVP_aes_256_cbc() -
EVP_aes_256_ctr
public static com.sun.jna.ptr.PointerByReference EVP_aes_256_ctr() -
EVP_CIPHER_CTX_cleanup
public static void EVP_CIPHER_CTX_cleanup(com.sun.jna.ptr.PointerByReference context) -
EVP_CIPHER_CTX_free
public static void EVP_CIPHER_CTX_free(com.sun.jna.ptr.PointerByReference context) -
EVP_CIPHER_CTX_new
public static com.sun.jna.ptr.PointerByReference EVP_CIPHER_CTX_new() -
EVP_CIPHER_CTX_set_padding
public static int EVP_CIPHER_CTX_set_padding(com.sun.jna.ptr.PointerByReference context, int padding) -
EVP_CipherFinal_ex
public static int EVP_CipherFinal_ex(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen) -
EVP_CipherInit_ex
public static int EVP_CipherInit_ex(com.sun.jna.ptr.PointerByReference context, com.sun.jna.ptr.PointerByReference algo, Object object, byte[] encoded, byte[] iv, int cipherMode) -
EVP_CipherUpdate
public static int EVP_CipherUpdate(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen, ByteBuffer inBuffer, int remaining) -
OpenSSLVersion
-
RAND_bytes
-
RAND_get_rand_method
public static com.sun.jna.ptr.PointerByReference RAND_get_rand_method() -
RAND_SSLeay
public static com.sun.jna.ptr.PointerByReference RAND_SSLeay()
-