Lines Matching refs:NativeCrypto
59 implements NativeCrypto.SSLHandshakeCallbacks, SSLParametersImpl.AliasChooser,
271 final int seedLengthInBytes = NativeCrypto.RAND_SEED_LENGTH_IN_BYTES;
274 NativeCrypto.RAND_load_file("/dev/urandom", seedLengthInBytes);
276 NativeCrypto.RAND_seed(secureRandom.generateSeed(seedLengthInBytes));
286 sslNativePointer = NativeCrypto.SSL_new(sslCtxNativePointer);
291 NativeCrypto.SSL_set_session_creation_enabled(sslNativePointer,
318 sslSessionNativePointer = NativeCrypto.SSL_do_handshake(sslNativePointer,
439 @SuppressWarnings("unused") // used by NativeCrypto.SSLHandshakeCallbacks / client_cert_cb
459 @SuppressWarnings("unused") // used by NativeCrypto.SSLHandshakeCallbacks / info_callback
461 if (type != NativeCrypto.SSL_CB_HANDSHAKE_DONE) {
468 // the call to NativeCrypto.SSL_do_handshake and not during a
527 @SuppressWarnings("unused") // used by NativeCrypto.SSLHandshakeCallbacks
699 return NativeCrypto.SSL_read(sslNativePointer, Platform.getFileDescriptor(socket),
765 NativeCrypto.SSL_write(sslNativePointer, Platform.getFileDescriptor(socket),
837 return NativeCrypto.getSupportedCipherSuites();
852 return NativeCrypto.getSupportedProtocols();
929 return NativeCrypto.SSL_get_tls_channel_id(sslNativePointer);
1082 NativeCrypto.SSL_interrupt(sslNativePointer);
1097 NativeCrypto.SSL_interrupt(sslNativePointer);
1116 NativeCrypto.SSL_shutdown(sslNativePointer, Platform.getFileDescriptor(socket),
1147 NativeCrypto.SSL_free(sslNativePointer);
1194 return NativeCrypto.SSL_get_npn_negotiated_protocol(sslNativePointer);
1202 return NativeCrypto.SSL_get0_alpn_selected(sslNativePointer);