Package org.apache.commons.crypto.jna
Class OpenSslNativeJna
- java.lang.Object
-
- org.apache.commons.crypto.jna.OpenSslNativeJna
-
final class OpenSslNativeJna extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.ThrowableINIT_ERROR(package private) static booleanINIT_OKprivate static OpenSslInterfaceNativeJnaJnaImplementation(package private) static intOOSL_JNA_DECRYPT_MODE(package private) static intOOSL_JNA_ENCRYPT_MODE(package private) static intOPENSSL_INIT_ENGINE_RDRAND(package private) static longVERSIONFull version from JNA call.(package private) static longVERSION_1_0_X(package private) static longVERSION_1_1_X(package private) static longVERSION_2_0_X(package private) static longVERSION_3_0_X(package private) static longVERSION_X_YMajor Minor version from JNA call, without the maintenance level.
-
Constructor Summary
Constructors Modifier Constructor Description privateOpenSslNativeJna()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.jna.ptr.PointerByReferenceENGINE_by_id(java.lang.String string)static intENGINE_cleanup()static 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 voidENGINE_load_rdrand()static intENGINE_set_default(com.sun.jna.ptr.PointerByReference rdrandEngine, int eNGINE_METHOD_RAND)static java.lang.StringERR_error_string(com.sun.jna.NativeLong err, char[] object)static com.sun.jna.NativeLongERR_peek_error()static com.sun.jna.ptr.PointerByReferenceEVP_aes_128_cbc()static com.sun.jna.ptr.PointerByReferenceEVP_aes_128_ctr()static com.sun.jna.ptr.PointerByReferenceEVP_aes_192_cbc()static com.sun.jna.ptr.PointerByReferenceEVP_aes_192_ctr()static com.sun.jna.ptr.PointerByReferenceEVP_aes_256_cbc()static com.sun.jna.ptr.PointerByReferenceEVP_aes_256_ctr()static 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.PointerByReferenceEVP_CIPHER_CTX_new()static intEVP_CIPHER_CTX_set_padding(com.sun.jna.ptr.PointerByReference context, int padding)static intEVP_CipherFinal_ex(com.sun.jna.ptr.PointerByReference context, java.nio.ByteBuffer outBuffer, int[] outlen)static intEVP_CipherInit_ex(com.sun.jna.ptr.PointerByReference context, com.sun.jna.ptr.PointerByReference algo, java.lang.Object object, byte[] encoded, byte[] iv, int cipherMode)static intEVP_CipherUpdate(com.sun.jna.ptr.PointerByReference context, java.nio.ByteBuffer outBuffer, int[] outlen, java.nio.ByteBuffer inBuffer, int remaining)static java.lang.StringOpenSSLVersion(int i)static intRAND_bytes(java.nio.ByteBuffer buf, int length)static com.sun.jna.ptr.PointerByReferenceRAND_get_rand_method()static com.sun.jna.ptr.PointerByReferenceRAND_SSLeay()
-
-
-
Field Detail
-
OPENSSL_INIT_ENGINE_RDRAND
static final int OPENSSL_INIT_ENGINE_RDRAND
- See Also:
- Constant Field Values
-
OOSL_JNA_ENCRYPT_MODE
static final int OOSL_JNA_ENCRYPT_MODE
- See Also:
- Constant Field Values
-
OOSL_JNA_DECRYPT_MODE
static final int OOSL_JNA_DECRYPT_MODE
- See Also:
- Constant Field Values
-
INIT_OK
static final boolean INIT_OK
-
INIT_ERROR
static final java.lang.Throwable INIT_ERROR
-
VERSION
static final long VERSION
Full version from JNA call.
-
VERSION_X_Y
static final long VERSION_X_Y
Major Minor version from JNA call, without the maintenance level.
-
VERSION_1_0_X
static final long VERSION_1_0_X
- See Also:
- Constant Field Values
-
VERSION_1_1_X
static final long VERSION_1_1_X
- See Also:
- Constant Field Values
-
VERSION_2_0_X
static final long VERSION_2_0_X
- See Also:
- Constant Field Values
-
VERSION_3_0_X
static final long VERSION_3_0_X
- See Also:
- Constant Field Values
-
JnaImplementation
private static final OpenSslInterfaceNativeJna JnaImplementation
-
-
Method Detail
-
ENGINE_by_id
public static com.sun.jna.ptr.PointerByReference ENGINE_by_id(java.lang.String string)
-
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
public static java.lang.String ERR_error_string(com.sun.jna.NativeLong err, char[] object)
-
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, java.nio.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, java.lang.Object object, byte[] encoded, byte[] iv, int cipherMode)
-
EVP_CipherUpdate
public static int EVP_CipherUpdate(com.sun.jna.ptr.PointerByReference context, java.nio.ByteBuffer outBuffer, int[] outlen, java.nio.ByteBuffer inBuffer, int remaining)
-
OpenSSLVersion
public static java.lang.String OpenSSLVersion(int i)
-
RAND_bytes
public static int RAND_bytes(java.nio.ByteBuffer buf, int length)
-
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()
-
-