Home
last modified time | relevance | path

Searched refs:tls_ctx (Results 1 – 10 of 10) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dtls_none.c25 int tls_get_errors(void *tls_ctx) in tls_get_errors() argument
31 struct tls_connection * tls_connection_init(void *tls_ctx) in tls_connection_init() argument
37 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
42 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) in tls_connection_established() argument
48 char * tls_connection_peer_serial_num(void *tls_ctx, in tls_connection_peer_serial_num() argument
55 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
61 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_params() argument
68 int tls_global_set_params(void *tls_ctx, in tls_global_set_params() argument
75 int tls_global_set_verify(void *tls_ctx, int check_crl, int strict) in tls_global_set_verify() argument
81 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_verify() argument
[all …]
Dtls.h243 void tls_deinit(void *tls_ctx);
252 int tls_get_errors(void *tls_ctx);
259 struct tls_connection * tls_connection_init(void *tls_ctx);
268 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn);
276 int tls_connection_established(void *tls_ctx, struct tls_connection *conn);
287 char * tls_connection_peer_serial_num(void *tls_ctx,
301 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn);
323 tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
339 void *tls_ctx, const struct tls_connection_params *params);
349 int __must_check tls_global_set_verify(void *tls_ctx, int check_crl,
[all …]
Dtls_internal.c87 int tls_get_errors(void *tls_ctx) in tls_get_errors() argument
93 struct tls_connection * tls_connection_init(void *tls_ctx) in tls_connection_init() argument
96 struct tls_global *global = tls_ctx; in tls_connection_init()
150 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
166 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) in tls_connection_established() argument
180 char * tls_connection_peer_serial_num(void *tls_ctx, in tls_connection_peer_serial_num() argument
188 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
202 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_params() argument
298 int tls_global_set_params(void *tls_ctx, in tls_global_set_params() argument
302 struct tls_global *global = tls_ctx; in tls_global_set_params()
[all …]
Dtls_wolfssl.c317 int tls_get_errors(void *tls_ctx) in tls_get_errors() argument
335 struct tls_connection * tls_connection_init(void *tls_ctx) in tls_connection_init() argument
337 WOLFSSL_CTX *ssl_ctx = tls_ctx; in tls_connection_init()
366 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
386 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) in tls_connection_established() argument
392 char * tls_connection_peer_serial_num(void *tls_ctx, in tls_connection_peer_serial_num() argument
400 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
523 static int tls_connection_private_key(void *tls_ctx, in tls_connection_private_key() argument
530 WOLFSSL_CTX *ctx = tls_ctx; in tls_connection_private_key()
1169 static int tls_connection_ca_cert(void *tls_ctx, struct tls_connection *conn, in tls_connection_ca_cert() argument
[all …]
Dtls_gnutls.c298 char * tls_connection_peer_serial_num(void *tls_ctx, in tls_connection_peer_serial_num() argument
353 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_params() argument
736 int tls_global_set_params(void *tls_ctx, in tls_global_set_params() argument
739 struct tls_global *global = tls_ctx; in tls_global_set_params()
900 int tls_connection_export_key(void *tls_ctx, struct tls_connection *conn, in tls_connection_export_key() argument
921 int tls_connection_get_eap_fast_key(void *tls_ctx, struct tls_connection *conn, in tls_connection_get_eap_fast_key() argument
1447 struct wpabuf * tls_connection_handshake(void *tls_ctx, in tls_connection_handshake() argument
1452 struct tls_global *global = tls_ctx; in tls_connection_handshake()
1568 struct wpabuf * tls_connection_server_handshake(void *tls_ctx, in tls_connection_server_handshake() argument
1573 return tls_connection_handshake(tls_ctx, conn, in_data, appl_data); in tls_connection_server_handshake()
[all …]
Dtls_openssl.c1818 char * tls_connection_peer_serial_num(void *tls_ctx, in tls_connection_peer_serial_num() argument
4420 int tls_connection_export_key(void *tls_ctx, struct tls_connection *conn, in tls_connection_export_key() argument
4433 int tls_connection_get_eap_fast_key(void *tls_ctx, struct tls_connection *conn, in tls_connection_get_eap_fast_key() argument
4743 struct wpabuf * tls_connection_server_handshake(void *tls_ctx, in tls_connection_server_handshake() argument
4753 struct wpabuf * tls_connection_encrypt(void *tls_ctx, in tls_connection_encrypt() argument
4793 struct wpabuf * tls_connection_decrypt(void *tls_ctx, in tls_connection_decrypt() argument
4856 int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_cipher_list() argument
5342 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_params() argument
5345 struct tls_data *data = tls_ctx; in tls_connection_set_params()
5690 int tls_global_set_params(void *tls_ctx, in tls_global_set_params() argument
[all …]
/external/boringssl/src/crypto/cipher_extra/
De_tls.c52 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_cleanup() local
53 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); in aead_tls_cleanup()
54 HMAC_CTX_cleanup(&tls_ctx->hmac_ctx); in aead_tls_cleanup()
77 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_init() local
78 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); in aead_tls_init()
79 HMAC_CTX_init(&tls_ctx->hmac_ctx); in aead_tls_init()
81 OPENSSL_memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init()
82 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init()
83 tls_ctx->implicit_iv = implicit_iv; in aead_tls_init()
85 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
[all …]
/external/cronet/third_party/boringssl/src/crypto/cipher_extra/
De_tls.c52 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_cleanup() local
53 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); in aead_tls_cleanup()
54 HMAC_CTX_cleanup(&tls_ctx->hmac_ctx); in aead_tls_cleanup()
77 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_init() local
78 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); in aead_tls_init()
79 HMAC_CTX_init(&tls_ctx->hmac_ctx); in aead_tls_init()
81 OPENSSL_memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init()
82 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init()
83 tls_ctx->implicit_iv = implicit_iv; in aead_tls_init()
85 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
De_tls.c58 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_cleanup() local
59 EVP_CIPHER_CTX_cleanup(&tls_ctx->cipher_ctx); in aead_tls_cleanup()
60 HMAC_CTX_cleanup(&tls_ctx->hmac_ctx); in aead_tls_cleanup()
83 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_init() local
84 EVP_CIPHER_CTX_init(&tls_ctx->cipher_ctx); in aead_tls_init()
85 HMAC_CTX_init(&tls_ctx->hmac_ctx); in aead_tls_init()
87 OPENSSL_memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init()
88 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init()
89 tls_ctx->implicit_iv = implicit_iv; in aead_tls_init()
91 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
[all …]
/external/rust/crates/quiche/src/
Dlib.rs703 tls_ctx: tls::Context, field
753 version: u32, tls_ctx: boring::ssl::SslContext, in with_boring_ssl_ctx()
755 Self::with_tls_ctx(version, tls::Context::from_boring(tls_ctx)) in with_boring_ssl_ctx()
758 fn with_tls_ctx(version: u32, tls_ctx: tls::Context) -> Result<Config> { in with_tls_ctx()
766 tls_ctx, in with_tls_ctx()
798 self.tls_ctx.use_certificate_chain_file(file) in load_cert_chain_from_pem_file()
813 self.tls_ctx.use_privkey_file(file) in load_priv_key_from_pem_file()
829 self.tls_ctx.load_verify_locations_from_file(file) in load_verify_locations_from_file()
847 self.tls_ctx.load_verify_locations_from_directory(dir) in load_verify_locations_from_directory()
855 self.tls_ctx.set_verify(verify); in verify_peer()
[all …]