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.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static interface | NativeCrypto.SSLHandshakeCallbacks
A collection of callbacks from the native OpenSSL code that are related to the SSL handshake initiated by SSL_do_handshake. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String[] | |
| pack-priv static final String[] | DEFAULT_PSK_CIPHER_SUITES
TLS-PSK cipher suites enabled by default (if requested), in preference order. |
| pack-priv static final String[] | DEFAULT_X509_CIPHER_SUITES
X.509 based cipher suites enabled by default (if requested), in preference order. |
| pack-priv static final int | EXTENSION_TYPE_CRITICAL
Used to request only critical types in get_X509*_ext_oids. |
| pack-priv static final int | EXTENSION_TYPE_NON_CRITICAL
Used to request only non-critical types in get_X509*_ext_oids. |
| pack-priv static final int | GN_STACK_ISSUER_ALT_NAME
Used to request get_X509_GENERAL_NAME_stack get the issuerAlternativeName extension. |
| pack-priv static final int | GN_STACK_SUBJECT_ALT_NAME
Used to request get_X509_GENERAL_NAME_stack get the "altname" field. |
| private static final boolean | |
| private static final UnsatisfiedLinkError | |
| pack-priv static final String | |
| pack-priv static final int | PKCS7_CERTS
Used as the "which" field in d2i_PKCS7_bio and PEM_read_bio_PKCS7. |
| pack-priv static final int | PKCS7_CRLS
Used as the "which" field in d2i_PKCS7_bio and PEM_read_bio_PKCS7. |
| private static final Set | |
| private static final String | |
| private static final String | |
| private static final String | |
| pack-priv static final String | |
| private static final String[] | |
| private static final String[] | |
| pack-priv static final Set | |
| pack-priv static final String[] | |
| pack-priv static final Set | |
| pack-priv static final String | TLS_EMPTY_RENEGOTIATION_INFO_SCSV
TLS_EMPTY_RENEGOTIATION_INFO_SCSV is RFC 5746's renegotiation indication signaling cipher suite value. |
| private static final String | TLS_FALLBACK_SCSV
TLS_FALLBACK_SCSV is from https://tools.ietf.org/html/draft-ietf-tls-downgrade-scsv-00 to indicate to the server that this is a fallback protocol request. |
| pack-priv static final String[] | TLSV11_PROTOCOLS
Protocols to enable by default when "TLSv1.1" is requested. |
| pack-priv static final String[] | TLSV12_PROTOCOLS
Protocols to enable by default when "TLSv1.2" is requested. |
| pack-priv static final String[] | TLSV13_PROTOCOLS
Protocols to enable by default when "TLSv1.3" is requested. |
| pack-priv static final String[] | TLSV1_PROTOCOLS
Protocols to enable by default when "TLSv1" is requested. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static native void | |
| pack-priv static native long | asn1_read_init(byte[] val)
Allocates and returns an opaque reference to an object that can be used with other asn1_read_* functions to read the ASN.1-encoded data in val. |
| pack-priv static native boolean | |
| pack-priv static native boolean | asn1_read_next_tag_is(long cbsRef, int tag)
Returns whether the next object in the given reference is explicitly tagged with the given tag number. |
| pack-priv static native void | |
| pack-priv static native byte[] | asn1_read_octetstring(long cbsRef)
Returns the contents of an ASN.1 octet string from the given reference. |
| pack-priv static native String | asn1_read_oid(long cbsRef)
Returns an ASN.1 OID in dotted-decimal notation (eg, "1.3.14.3.2.26" for SHA-1) from the given reference. |
| pack-priv static native long | asn1_read_sequence(long cbsRef)
Allocates and returns an opaque reference to an object that can be used with other asn1_read_* functions to read the ASN.1 sequence pointed to by cbsRef. |
| pack-priv static native long | asn1_read_tagged(long cbsRef)
Allocates and returns an opaque reference to an object that can be used with other asn1_read_* functions to read the ASN.1 data pointed to by cbsRef. |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native long[] | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native byte[] | asn1_write_finish(long cbbRef)
Completes any in-progress operations and returns the ASN.1-encoded data. |
| pack-priv static native void | asn1_write_flush(long cbbRef)
Flushes the given reference, invalidating any child references and completing their operations. |
| pack-priv static native void | |
| pack-priv static native long | asn1_write_init()
Allocates and returns an opaque reference to an object that can be used with other asn1_write_* functions to write ASN.1-encoded data. |
| pack-priv static native void | |
| pack-priv static native void | asn1_write_octetstring(long cbbRef, byte[] data)
Writes the given data into the given reference as an ASN.1-encoded octet string. |
| pack-priv static native void | asn1_write_oid(long cbbRef, String oid)
Writes the given OID (which must be in dotted-decimal notation) into the given reference. |
| pack-priv static native long | asn1_write_sequence(long cbbRef)
Allocates and returns an opaque reference to an object that can be used with other asn1_write_* functions to write an ASN.1 sequence into the given reference. |
| pack-priv static native long | asn1_write_tag(long cbbRef, int tag)
Allocates and returns an opaque reference to an object that can be used with other asn1_write_* functions to write a explicitly-tagged ASN.1 object with the given tag into the given reference. |
| pack-priv static native void | asn1_write_uint64(long cbbRef, long value)
Writes the given value into the given reference as an ASN.1-encoded integer. |
| pack-priv static native void | |
| pack-priv static native int | |
| pack-priv static native void | |
| pack-priv static native void | chacha20_encrypt_decrypt(byte[] in, int inOffset, byte[] out, int outOffset, int length, byte[] key, byte[] nonce, int blockCounter)
Returns the encrypted or decrypted version of the data. |
| pack-priv static void | |
| pack-priv static String[] | |
| pack-priv static String[] | |
| pack-priv static String | |
| pack-priv static String | |
| private static native void | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long[] | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native byte[] | |
| pack-priv static native byte[][] | |
| pack-priv static native String | |
| pack-priv static native int | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native long | EC_GROUP_new_arbitrary(byte[] p, byte[] a, byte[] b, byte[] x, byte[] y, byte[] order, int cofactor)
|
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native byte[][] | |
| pack-priv static native long | |
| pack-priv static native void | EC_POINT_set_affine_coordinates(NativeRef.
|
| pack-priv static native int | ECDH_compute_key(byte[] out, int outOffset, NativeRef.
|
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | Returns: Returns the SSL error code for the operation when the error wasSSL_ERROR_NONE, SSL_ERROR_WANT_READ, or SSL_ERROR_WANT_WRITE.Variant of the |
| pack-priv static native void | ENGINE_SSL_force_read(long ssl, NativeSsl ssl_holder, NativeCrypto.
Forces the SSL object to process any data pending in the BIO. |
| pack-priv static native int | ENGINE_SSL_read_BIO_direct(long ssl, NativeSsl ssl_holder, long bioRef, long address, int len, NativeCrypto.
Reads data from the given BIO into a direct |
| pack-priv static native int | ENGINE_SSL_read_BIO_heap(long ssl, NativeSsl ssl_holder, long bioRef, byte[] destJava, int destOffset, int destLength, NativeCrypto.
Reads data from the given BIO into an array. |
| pack-priv static native int | Returns: if positive, represents the number of bytes read into the given buffer. Returns-SSL_ERROR_WANT_READ if more data is needed. Returns
-SSL_ERROR_WANT_WRITE if data needs to be written out to flush the BIO.Variant of the |
| pack-priv static native void | ENGINE_SSL_shutdown(long ssl, NativeSsl ssl_holder, NativeCrypto.
Variant of the |
| pack-priv static native int | ENGINE_SSL_write_BIO_direct(long ssl, NativeSsl ssl_holder, long bioRef, long pos, int length, NativeCrypto.
Writes data from the given direct |
| pack-priv static native int | ENGINE_SSL_write_BIO_heap(long ssl, NativeSsl ssl_holder, long bioRef, byte[] sourceJava, int sourceOffset, int sourceLength, NativeCrypto.
Writes data from the given array to the BIO. |
| pack-priv static native int | ENGINE_SSL_write_direct(long ssl, NativeSsl ssl_holder, long address, int length, NativeCrypto.
Variant of the |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native int | EVP_AEAD_CTX_open(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, int outOffset, byte[] nonce, byte[] in, int inOffset, int inLength, byte[] ad)
|
| pack-priv static native int | EVP_AEAD_CTX_open_buf(long evpAead, byte[] key, int tagLengthInBytes, ByteBuffer out, byte[] nonce, ByteBuffer input, byte[] ad)
|
| pack-priv static native int | EVP_AEAD_CTX_seal(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, int outOffset, byte[] nonce, byte[] in, int inOffset, int inLength, byte[] ad)
|
| pack-priv static native int | EVP_AEAD_CTX_seal_buf(long evpAead, byte[] key, int tagLengthInBytes, ByteBuffer out, byte[] nonce, ByteBuffer input, byte[] ad)
|
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native void | EVP_CipherInit_ex(NativeRef.
|
| pack-priv static native int | EVP_CipherUpdate(NativeRef.
|
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native boolean | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native int | EVP_has_aes_hardware()
Returns 1 if the BoringSSL believes the CPU has AES accelerated hardware instructions. |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native void | |
| pack-priv static native int | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native int | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native int | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native int | EVP_PKEY_decrypt(NativeRef.
|
| pack-priv static native long | |
| pack-priv static native int | EVP_PKEY_encrypt(NativeRef.
|
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native long | EVP_PKEY_new_RSA(byte[] n, byte[] e, byte[] d, byte[] p, byte[] q, byte[] dmp1, byte[] dmq1, byte[] iqmp)
|
| pack-priv static native String | |
| pack-priv static native String | |
| pack-priv static native int | |
| pack-priv static native String[] | |
| pack-priv static native int | |
| pack-priv static native boolean | |
| public static native byte[] | get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2)
|
| pack-priv static native byte[][] | |
| pack-priv static native byte[][] | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native String[] | |
| pack-priv static native String | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native int | |
| pack-priv static native boolean[] | |
| pack-priv static native int | |
| pack-priv static native String[] | |
| pack-priv static native String[] | |
| pack-priv static native Object[][] | |
| pack-priv static native boolean[] | |
| pack-priv static native String | |
| pack-priv static native String[] | |
| pack-priv static native long | |
| pack-priv static native String | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native boolean[] | |
| pack-priv static native byte[] | |
| pack-priv static native long | getDirectBufferAddress(Buffer buf)
Returns the starting address of the memory region referenced by the provided direct
|
| pack-priv static native long | |
| private static int | |
| private static NativeCrypto. | |
| pack-priv static native long | |
| pack-priv static String[] | |
| pack-priv static String[] | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | i2d_X509_PUBKEY(long x509ctx, OpenSSLX509Certificate holder)
Takes an X509 context not an X509_PUBKEY context. |
| pack-priv static native byte[] | |
| pack-priv static native long[] | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | setApplicationProtocols(long ssl, NativeSsl ssl_holder, boolean client, byte[] protocols)
Enables ALPN for this TLS endpoint and sets the list of supported ALPN protocols in wire-format (length-prefixed 8-bit strings). |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static native void | setHasApplicationProtocolSelector(long ssl, NativeSsl ssl_holder, boolean hasSelector)
Called for a server endpoint only. |
| pack-priv static native void | setLocalCertsAndPrivateKey(long
the SSL reference. ssl, NativeSsl ssl_holder, byte[][] the encoded form of the local certificate chain. encodedCertificates, NativeRef.a reference to the private key. pkeySets the local certificates and private key. |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native String | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | SSL_do_handshake(long ssl, NativeSsl ssl_holder, FileDescriptor fd, NativeCrypto.
|
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native byte[] | SSL_export_keying_material(long ssl, NativeSsl ssl_holder, byte[] label, byte[] context, int num_bytes)
|
| pack-priv static native void | |
| pack-priv static native byte[][] | |
| pack-priv static native long | |
| pack-priv static native long[] | Returns: array ofSSL_CIPHER references.Gets the list of cipher suites enabled for the provided |
| public static native String | |
| pack-priv static native int | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native String | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| public static native String | |
| pack-priv static native void | |
| pack-priv static native int | SSL_max_seal_overhead(long ssl, NativeSsl ssl_holder)
Returns the maximum overhead, in bytes, of sealing a record with SSL. |
| pack-priv static native long | |
| pack-priv static native int | |
| pack-priv static native int | |
| pack-priv static native int | Returns: -1 if error or the end of the stream is reached.Reads with the native SSL_read function from the encrypted data stream |
| pack-priv static native String | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native String | |
| pack-priv static native byte[] | |
| pack-priv static native boolean | |
| pack-priv static native byte[] | |
| pack-priv static native boolean | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native int | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | SSL_shutdown(long ssl, NativeSsl ssl_holder, FileDescriptor fd, NativeCrypto.
|
| pack-priv static native void | |
| pack-priv static native void | SSL_write(long ssl, NativeSsl ssl_holder, FileDescriptor fd, NativeCrypto.
Writes with the native SSL_write function to the encrypted data stream. |
| pack-priv static native int | X509_check_issued(long ctx, OpenSSLX509Certificate holder, long ctx2, OpenSSLX509Certificate holder2)
|
| pack-priv static native int | X509_cmp(long x509ctx1, OpenSSLX509Certificate holder, long x509ctx2, OpenSSLX509Certificate holder2)
|
| pack-priv static native void | |
| pack-priv static native long | X509_CRL_get0_by_cert(long x509CrlCtx, OpenSSLX509CRL holder, long x509Ctx, OpenSSLX509Certificate holder2)
Returns X509_REVOKED reference that is not duplicated! |
| pack-priv static native long | X509_CRL_get0_by_serial(long x509CrlCtx, OpenSSLX509CRL holder, byte[] serial)
Returns X509_REVOKED reference that is not duplicated! |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long[] | X509_CRL_get_REVOKED(long x509CrlCtx, OpenSSLX509CRL holder)
Returns an array of X509_REVOKED that are owned by the caller. |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native void | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native long | |
| pack-priv static int | |
| private static int | |
| public static int | |
| pack-priv static native void | |
| pack-priv static native long | |
| pack-priv static native long | |
| pack-priv static native byte[] | |
| pack-priv static native byte[] | |
| pack-priv static native void | |
| pack-priv static native int | |
| pack-priv static native void |