Package org.conscrypt

Class NativeCrypto

java.lang.Object
org.conscrypt.NativeCrypto

@Internal public final class NativeCrypto extends Object
Provides the Java side of our JNI glue for OpenSSL.

Note: Many methods in this class take a reference to a Java object that holds a native pointer in the form of a long in addition to the long itself and don't use the Java object in the native implementation. This is to prevent the Java object from becoming eligible for GC while the native method is executing. See this for more details.

  • Constructor Details

    • NativeCrypto

      public NativeCrypto()
  • Method Details

    • X509_NAME_hash_old

      public static int X509_NAME_hash_old(X500Principal principal)
    • SSL_get_current_cipher

      public static String SSL_get_current_cipher(long ssl, org.conscrypt.NativeSsl ssl_holder)
    • SSL_get_version

      public static String SSL_get_version(long ssl, org.conscrypt.NativeSsl ssl_holder)
    • get_ocsp_single_extension

      public static byte[] get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2)