Class NativeCrypto
java.lang.Object
org.conscrypt.NativeCrypto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2) static StringSSL_get_current_cipher(long ssl, org.conscrypt.NativeSsl ssl_holder) static StringSSL_get_version(long ssl, org.conscrypt.NativeSsl ssl_holder) static intX509_NAME_hash_old(X500Principal principal)
-
Constructor Details
-
NativeCrypto
public NativeCrypto()
-
-
Method Details
-
X509_NAME_hash_old
-
SSL_get_current_cipher
-
SSL_get_version
-
get_ocsp_single_extension
public static byte[] get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2)
-