Package org.conscrypt

Class 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 Detail

      • NativeCrypto

        public NativeCrypto()
    • Method Detail

      • 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)