/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 331 int eap_eke_derive_key(struct eap_eke_session *sess, in eap_eke_derive_key() argument 342 os_memset(zeros, 0, sess->prf_len); in eap_eke_derive_key() 343 if (eap_eke_prf(sess->prf, zeros, sess->prf_len, in eap_eke_derive_key() 347 temp, sess->prf_len); in eap_eke_derive_key() 357 if (eap_eke_prfplus(sess->prf, temp, sess->prf_len, in eap_eke_derive_key() 370 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, in eap_eke_dhcomp() argument 377 dh_len = eap_eke_dh_len(sess->dhgroup); in eap_eke_dhcomp() 387 if (sess->encr != EAP_EKE_ENCR_AES128_CBC) in eap_eke_dhcomp() 405 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, in eap_eke_shared_secret() argument 414 if (sess->encr != EAP_EKE_ENCR_AES128_CBC) in eap_eke_shared_secret() [all …]
|
D | eap_eke_common.h | 81 int eap_eke_session_init(struct eap_eke_session *sess, u8 dhgroup, u8 encr, 83 void eap_eke_session_clean(struct eap_eke_session *sess); 85 int eap_eke_derive_key(struct eap_eke_session *sess, 89 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, 91 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, 93 int eap_eke_derive_ke_ki(struct eap_eke_session *sess, 96 int eap_eke_derive_ka(struct eap_eke_session *sess, 100 int eap_eke_derive_msk(struct eap_eke_session *sess, 105 int eap_eke_prot(struct eap_eke_session *sess, 108 int eap_eke_decrypt_prot(struct eap_eke_session *sess, [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_server.c | 346 void srv_log(struct radius_session *sess, const char *fmt, ...) 349 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument 366 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log() 369 if (sess->server->db) { in srv_log() 376 sess->sess_id, sess->nas_ip, in srv_log() 377 sess->username, buf); in srv_log() 379 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log() 382 sqlite3_errmsg(sess->server->db)); in srv_log() 435 struct radius_session *sess = client->sessions; in radius_server_get_session() local 437 while (sess) { in radius_server_get_session() [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_eke.c | 29 struct eap_eke_session sess; member 104 eap_eke_session_clean(&data->sess); in eap_eke_reset() 253 if (eap_eke_derive_key(&data->sess, sm->user->password, in eap_eke_build_commit() 262 msg = eap_eke_build_msg(data, id, data->sess.dhcomp_len, in eap_eke_build_commit() 277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_build_commit() 283 if (eap_eke_dhcomp(&data->sess, data->key, pub, in eap_eke_build_commit() 284 wpabuf_put(msg, data->sess.dhcomp_len)) in eap_eke_build_commit() 313 plen = data->sess.pnonce_ps_len + data->sess.prf_len; in eap_eke_build_confirm() 320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm() 326 data->nonce_s, data->sess.nonce_len); in eap_eke_build_confirm() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_eke.c | 27 struct eap_eke_session sess; member 137 eap_eke_session_clean(&data->sess); in eap_eke_deinit() 211 eap_eke_session_clean(&data->sess); in eap_eke_build_fail() 284 if (eap_eke_session_init(&data->sess, prop[0], prop[1], prop[2], in eap_eke_process_id() 388 if (pos + data->sess.dhcomp_len > end) { in eap_eke_process_commit() 395 pos, data->sess.dhcomp_len); in eap_eke_process_commit() 397 pos += data->sess.dhcomp_len; in eap_eke_process_commit() 404 if (eap_eke_derive_key(&data->sess, password, password_len, in eap_eke_process_commit() 416 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_process_commit() 423 if (eap_eke_shared_secret(&data->sess, key, data->dh_priv, dhcomp) < 0) in eap_eke_process_commit() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/engine/ |
D | eng_cryptodev.c | 244 struct session_op sess; in get_cryptodev_ciphers() local 251 memset(&sess, 0, sizeof(sess)); in get_cryptodev_ciphers() 252 sess.key = (caddr_t)"123456789abcdefghijklmno"; in get_cryptodev_ciphers() 257 sess.cipher = ciphers[i].id; in get_cryptodev_ciphers() 258 sess.keylen = ciphers[i].keylen; in get_cryptodev_ciphers() 259 sess.mac = 0; in get_cryptodev_ciphers() 260 if (ioctl(fd, CIOCGSESSION, &sess) != -1 && in get_cryptodev_ciphers() 261 ioctl(fd, CIOCFSESSION, &sess.ses) != -1) in get_cryptodev_ciphers() 284 struct session_op sess; in get_cryptodev_digests() local 291 memset(&sess, 0, sizeof(sess)); in get_cryptodev_digests() [all …]
|
/external/openssl/crypto/engine/ |
D | eng_cryptodev.c | 244 struct session_op sess; in get_cryptodev_ciphers() local 251 memset(&sess, 0, sizeof(sess)); in get_cryptodev_ciphers() 252 sess.key = (caddr_t)"123456789abcdefghijklmno"; in get_cryptodev_ciphers() 257 sess.cipher = ciphers[i].id; in get_cryptodev_ciphers() 258 sess.keylen = ciphers[i].keylen; in get_cryptodev_ciphers() 259 sess.mac = 0; in get_cryptodev_ciphers() 260 if (ioctl(fd, CIOCGSESSION, &sess) != -1 && in get_cryptodev_ciphers() 261 ioctl(fd, CIOCFSESSION, &sess.ses) != -1) in get_cryptodev_ciphers() 284 struct session_op sess; in get_cryptodev_digests() local 291 memset(&sess, 0, sizeof(sess)); in get_cryptodev_digests() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/evp/ |
D | openbsd_hw.c | 276 session_op sess; 284 if(!dev_crypto_init(&md_data->sess)) 290 md_data->sess.mac=mac; 292 if (ioctl(fd,CIOCGSESSION,&md_data->sess) == -1) 302 if (ioctl(fd,CIOCFSESSION,&md_data->sess.ses) == -1) 377 return do_digest(md_data->sess.ses,md_data->md,data,len); 398 ret=do_digest(md_data->sess.ses,md,md_data->data,md_data->len);
|
/external/openssl/crypto/evp/ |
D | openbsd_hw.c | 276 session_op sess; 284 if(!dev_crypto_init(&md_data->sess)) 290 md_data->sess.mac=mac; 292 if (ioctl(fd,CIOCGSESSION,&md_data->sess) == -1) 302 if (ioctl(fd,CIOCFSESSION,&md_data->sess.ses) == -1) 377 return do_digest(md_data->sess.ses,md_data->md,data,len); 398 ret=do_digest(md_data->sess.ses,md,md_data->data,md_data->len);
|
/external/chromium_org/third_party/openssl/openssl/ssl/ |
D | s2_clnt.c | 618 SSL_SESSION *sess; in client_master_key() local 632 sess=s->session; in client_master_key() 637 i=ssl_put_cipher_by_char(s,sess->cipher,p); in client_master_key() 642 sess->key_arg_length=i; in client_master_key() 650 if (RAND_pseudo_bytes(sess->key_arg,i) <= 0) in client_master_key() 655 sess->master_key_length=i; in client_master_key() 658 if (i > (int)sizeof(sess->master_key)) in client_master_key() 664 if (RAND_bytes(sess->master_key,i) <= 0) in client_master_key() 671 if (sess->cipher->algorithm2 & SSL2_CF_8_BYTE_ENC) in client_master_key() 673 else if (SSL_C_IS_EXPORT(sess->cipher)) in client_master_key() [all …]
|
D | ssl_sess.c | 159 SSL_SESSION *sess; in SSL_get1_session() local 164 sess = ssl->session; in SSL_get1_session() 165 if(sess) in SSL_get1_session() 166 sess->references++; in SSL_get1_session() 168 return(sess); in SSL_get1_session() 1076 int (*cb)(struct ssl_st *ssl,SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb() argument 1081 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *sess) in SSL_CTX_sess_get_new_cb() 1087 void (*cb)(SSL_CTX *ctx,SSL_SESSION *sess)) in SSL_CTX_sess_set_remove_cb() argument 1092 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(SSL_CTX * ctx,SSL_SESSION *sess) in SSL_CTX_sess_get_remove_cb()
|
D | s3_pkt.c | 289 SSL_SESSION *sess; in ssl3_get_record() local 297 sess=s->session; in ssl3_get_record() 421 if ((sess != NULL) && in ssl3_get_record() 642 SSL_SESSION *sess; in do_ssl3_write() local 667 sess=s->session; in do_ssl3_write() 669 if ( (sess == NULL) || in do_ssl3_write()
|
D | d1_pkt.c | 380 SSL_SESSION *sess; in dtls1_process_record() local 386 sess = s->session; in dtls1_process_record() 434 if ((sess != NULL) && in dtls1_process_record() 1470 SSL_SESSION *sess; in do_dtls1_write() local 1495 sess=s->session; in do_dtls1_write() 1497 if ( (sess == NULL) || in do_dtls1_write()
|
D | t1_lib.c | 2230 SSL_SESSION *sess; in tls_decrypt_ticket() local 2299 sess = d2i_SSL_SESSION(NULL, &p, slen); in tls_decrypt_ticket() 2301 if (sess) in tls_decrypt_ticket() 2309 memcpy(sess->session_id, sess_id, sesslen); in tls_decrypt_ticket() 2310 sess->session_id_length = sesslen; in tls_decrypt_ticket() 2311 *psess = sess; in tls_decrypt_ticket()
|
D | d1_clnt.c | 782 SSL_SESSION *sess = s->session; in dtls1_client_hello() local 786 !sess->session_id_length || in dtls1_client_hello() 788 (!sess->session_id_length && !sess->tlsext_tick) || in dtls1_client_hello()
|
D | ssl.h | 827 int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess); 828 void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess); 1057 …SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess)); 1058 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(struct ssl_st *ssl, SSL_SESSION *sess); 1059 …s_set_remove_cb(SSL_CTX *ctx, void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess)); 1060 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(struct ssl_ctx_st *ctx, SSL_SESSION *sess);
|
/external/openssl/ssl/ |
D | s2_clnt.c | 618 SSL_SESSION *sess; in client_master_key() local 632 sess=s->session; in client_master_key() 637 i=ssl_put_cipher_by_char(s,sess->cipher,p); in client_master_key() 642 sess->key_arg_length=i; in client_master_key() 650 if (RAND_pseudo_bytes(sess->key_arg,i) <= 0) in client_master_key() 655 sess->master_key_length=i; in client_master_key() 658 if (i > (int)sizeof(sess->master_key)) in client_master_key() 664 if (RAND_bytes(sess->master_key,i) <= 0) in client_master_key() 671 if (sess->cipher->algorithm2 & SSL2_CF_8_BYTE_ENC) in client_master_key() 673 else if (SSL_C_IS_EXPORT(sess->cipher)) in client_master_key() [all …]
|
D | ssl_sess.c | 159 SSL_SESSION *sess; in SSL_get1_session() local 164 sess = ssl->session; in SSL_get1_session() 165 if(sess) in SSL_get1_session() 166 sess->references++; in SSL_get1_session() 168 return(sess); in SSL_get1_session() 1091 int (*cb)(struct ssl_st *ssl,SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb() argument 1096 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *sess) in SSL_CTX_sess_get_new_cb() 1102 void (*cb)(SSL_CTX *ctx,SSL_SESSION *sess)) in SSL_CTX_sess_set_remove_cb() argument 1107 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(SSL_CTX * ctx,SSL_SESSION *sess) in SSL_CTX_sess_get_remove_cb()
|
D | s3_pkt.c | 290 SSL_SESSION *sess; in ssl3_get_record() local 298 sess=s->session; in ssl3_get_record() 422 if ((sess != NULL) && in ssl3_get_record() 686 SSL_SESSION *sess; in do_ssl3_write() local 711 sess=s->session; in do_ssl3_write() 713 if ( (sess == NULL) || in do_ssl3_write()
|
D | d1_pkt.c | 383 SSL_SESSION *sess; in dtls1_process_record() local 389 sess = s->session; in dtls1_process_record() 437 if ((sess != NULL) && in dtls1_process_record() 1481 SSL_SESSION *sess; in do_dtls1_write() local 1506 sess=s->session; in do_dtls1_write() 1508 if ( (sess == NULL) || in do_dtls1_write()
|
D | d1_clnt.c | 792 SSL_SESSION *sess = s->session; in dtls1_client_hello() local 796 !sess->session_id_length || in dtls1_client_hello() 798 (!sess->session_id_length && !sess->tlsext_tick) || in dtls1_client_hello()
|
D | ssl.h | 844 int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess); 845 void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess); 1103 …SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess)); 1104 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(struct ssl_st *ssl, SSL_SESSION *sess); 1105 …s_set_remove_cb(SSL_CTX *ctx, void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess)); 1106 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(struct ssl_ctx_st *ctx, SSL_SESSION *sess);
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
D | s_client.c | 1234 SSL_SESSION *sess; in MAIN() local 1243 sess = PEM_read_bio_SSL_SESSION(stmp, NULL, 0, NULL); in MAIN() 1245 if (!sess) in MAIN() 1252 SSL_set_session(con, sess); in MAIN() 1253 SSL_SESSION_free(sess); in MAIN()
|
/external/openssl/apps/ |
D | s_client.c | 1261 SSL_SESSION *sess; in MAIN() local 1270 sess = PEM_read_bio_SSL_SESSION(stmp, NULL, 0, NULL); in MAIN() 1272 if (!sess) in MAIN() 1279 SSL_set_session(con, sess); in MAIN() 1280 SSL_SESSION_free(sess); in MAIN()
|
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
D | ssl.h | 827 int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess); 828 void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess); 1057 …SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*new_session_cb)(struct ssl_st *ssl,SSL_SESSION *sess)); 1058 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(struct ssl_st *ssl, SSL_SESSION *sess); 1059 …s_set_remove_cb(SSL_CTX *ctx, void (*remove_session_cb)(struct ssl_ctx_st *ctx,SSL_SESSION *sess)); 1060 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(struct ssl_ctx_st *ctx, SSL_SESSION *sess);
|