Class OpenSslNativeJna


  • final class OpenSslNativeJna
    extends java.lang.Object
    • Field Detail

      • OPENSSL_INIT_ENGINE_RDRAND

        static final int OPENSSL_INIT_ENGINE_RDRAND
        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.
    • Constructor Detail

      • OpenSslNativeJna

        private OpenSslNativeJna()
    • 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()