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 boolean
private static final OpenSslInterfaceNativeJna
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final long
Full 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 long
Major Minor version from JNA call, without the maintenance level. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.ptr.PointerByReference
ENGINE_by_id
(String string) static int
static int
ENGINE_finish
(com.sun.jna.ptr.PointerByReference rdrandEngine) static int
ENGINE_free
(com.sun.jna.ptr.PointerByReference rdrandEngine) static int
ENGINE_init
(com.sun.jna.ptr.PointerByReference rdrandEngine) static void
static int
ENGINE_set_default
(com.sun.jna.ptr.PointerByReference rdrandEngine, int eNGINE_METHOD_RAND) static String
ERR_error_string
(com.sun.jna.NativeLong err, char[] object) static com.sun.jna.NativeLong
static com.sun.jna.ptr.PointerByReference
static com.sun.jna.ptr.PointerByReference
static com.sun.jna.ptr.PointerByReference
static com.sun.jna.ptr.PointerByReference
static com.sun.jna.ptr.PointerByReference
static com.sun.jna.ptr.PointerByReference
static void
EVP_CIPHER_CTX_cleanup
(com.sun.jna.ptr.PointerByReference context) static void
EVP_CIPHER_CTX_free
(com.sun.jna.ptr.PointerByReference context) static com.sun.jna.ptr.PointerByReference
static int
EVP_CIPHER_CTX_set_padding
(com.sun.jna.ptr.PointerByReference context, int padding) static int
EVP_CipherFinal_ex
(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen) 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) static int
EVP_CipherUpdate
(com.sun.jna.ptr.PointerByReference context, ByteBuffer outBuffer, int[] outlen, ByteBuffer inBuffer, int remaining) static String
OpenSSLVersion
(int i) static int
RAND_bytes
(ByteBuffer buf, int length) static com.sun.jna.ptr.PointerByReference
static 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()
-