/external/openssl/patches/ |
D | 0011-ecdhe_psk.patch | 48 - if (alg_k & SSL_kPSK) 141 - if (alg_k & SSL_kSRP) 142 + else if (alg_k & SSL_kSRP) 153 - if (alg_k & SSL_kRSA) 154 + else if (alg_k & SSL_kRSA) 167 else if (alg_k & SSL_kEDH) 172 - else if (alg_k) 175 + else if (!(alg_k & SSL_kPSK)) 191 - if (!(alg_a & (SSL_aNULL|SSL_aSRP)) && !(alg_k & SSL_kPSK)) 194 + !((alg_a & SSL_aPSK) && !(alg_k & SSL_kRSA))) [all …]
|
D | 0013-tls_psk_hint.patch | 94 - || ((alg_k & SSL_kPSK) && s->ctx->psk_identity_hint) 95 + || ((alg_k & SSL_kPSK) && s->session->psk_identity_hint) 97 || (alg_k & (SSL_kEDH|SSL_kDHr|SSL_kDHd)) 98 || (alg_k & SSL_kEECDH) 206 - || ((alg_a & SSL_aPSK) && ((alg_k & SSL_kEECDH) || s->ctx->psk_identity_hint)) 207 + || ((alg_a & SSL_aPSK) && ((alg_k & SSL_kEECDH) || s->session->psk_identity_hint))
|
/external/openssl/ssl/ |
D | s3_clnt.c | 1361 long i,param_len,n,alg_k,alg_a; in ssl3_get_key_exchange() local 1442 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_get_key_exchange() 1509 else if (alg_k & SSL_kSRP) in ssl3_get_key_exchange() 1631 else if (alg_k & SSL_kRSA) in ssl3_get_key_exchange() 1700 else if (alg_k & SSL_kEDH) in ssl3_get_key_exchange() 1796 else if ((alg_k & SSL_kDHr) || (alg_k & SSL_kDHd)) in ssl3_get_key_exchange() 1805 else if (alg_k & SSL_kEECDH) in ssl3_get_key_exchange() 1914 else if (!(alg_k & SSL_kPSK)) in ssl3_get_key_exchange() 2040 !((alg_a & SSL_aPSK) && !(alg_k & SSL_kRSA))) in ssl3_get_key_exchange() 2440 unsigned long alg_k; in ssl3_send_client_key_exchange() local [all …]
|
D | s3_srvr.c | 220 unsigned long alg_k,Time=(unsigned long)time(NULL); in IMPLEMENT_ssl3_meth_func() local 448 alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in IMPLEMENT_ssl3_meth_func() 455 && !(alg_k & SSL_kKRB5) in IMPLEMENT_ssl3_meth_func() 484 || ((alg_a & SSL_aPSK) && ((alg_k & SSL_kEECDH) || s->session->psk_identity_hint)) in IMPLEMENT_ssl3_meth_func() 488 || (alg_k & SSL_kSRP) in IMPLEMENT_ssl3_meth_func() 490 || (alg_k & (SSL_kDHr|SSL_kDHd|SSL_kEDH)) in IMPLEMENT_ssl3_meth_func() 491 || (alg_k & SSL_kEECDH) in IMPLEMENT_ssl3_meth_func() 492 || ((alg_k & SSL_kRSA) in IMPLEMENT_ssl3_meth_func() 1635 unsigned long alg_k; in ssl3_send_server_key_exchange() local 1647 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_send_server_key_exchange() [all …]
|
D | d1_clnt.c | 973 unsigned long alg_k; in dtls1_send_client_key_exchange() local 995 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in dtls1_send_client_key_exchange() 1000 else if (alg_k & SSL_kRSA) in dtls1_send_client_key_exchange() 1066 else if (alg_k & SSL_kKRB5) in dtls1_send_client_key_exchange() 1085 alg_k, SSL_kKRB5); in dtls1_send_client_key_exchange() 1198 else if (alg_k & (SSL_kEDH|SSL_kDHr|SSL_kDHd)) in dtls1_send_client_key_exchange() 1261 else if (alg_k & (SSL_kEECDH|SSL_kECDHr|SSL_kECDHe)) in dtls1_send_client_key_exchange() 1280 if ((alg_k & (SSL_kECDHr|SSL_kECDHe)) && (s->cert != NULL)) in dtls1_send_client_key_exchange() 1454 else if (alg_k & SSL_kPSK) in dtls1_send_client_key_exchange()
|
D | s3_lib.c | 3899 unsigned long alg_k,alg_a,mask_k,mask_a,emask_k,emask_a; in ssl3_choose_cipher() local 3968 alg_k=c->algorithm_mkey; in ssl3_choose_cipher() 3972 if (alg_k & SSL_kKRB5) in ssl3_choose_cipher() 3986 ok = (alg_k & emask_k) && (alg_a & emask_a); in ssl3_choose_cipher() 3988 printf("%d:[%08lX:%08lX:%08lX:%08lX]%p:%s (export)\n",ok,alg_k,alg_a,emask_k,emask_a, in ssl3_choose_cipher() 3994 ok = (alg_k & mask_k) && (alg_a & mask_a); in ssl3_choose_cipher() 3996 printf("%d:[%08lX:%08lX:%08lX:%08lX]%p:%s\n",ok,alg_k,alg_a,mask_k,mask_a,(void *)c, in ssl3_choose_cipher() 4107 (alg_k & SSL_kEECDH) in ssl3_choose_cipher() 4160 if ((alg_k & SSL_kEECDH) && (alg_a & SSL_aECDSA) && s->s3->is_probably_safari) in ssl3_choose_cipher() 4176 unsigned long alg_k; in ssl3_get_req_cert_type() local [all …]
|
D | d1_srvr.c | 150 unsigned long alg_k; in IMPLEMENT_dtls1_meth_func() local 451 alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in IMPLEMENT_dtls1_meth_func() 457 && !(alg_k & SSL_kKRB5) in IMPLEMENT_dtls1_meth_func() 474 || ((alg_k & SSL_kPSK) && s->session->psk_identity_hint) in IMPLEMENT_dtls1_meth_func() 476 || (alg_k & (SSL_kEDH|SSL_kDHr|SSL_kDHd)) in IMPLEMENT_dtls1_meth_func() 477 || (alg_k & SSL_kEECDH) in IMPLEMENT_dtls1_meth_func() 478 || ((alg_k & SSL_kRSA) in IMPLEMENT_dtls1_meth_func()
|
D | ssl_lib.c | 2400 unsigned long alg_k, alg_a; in ssl_check_srvr_ecc_cert_and_alg() local 2406 alg_k = cs->algorithm_mkey; in ssl_check_srvr_ecc_cert_and_alg() 2426 if (alg_k & SSL_kECDHe || alg_k & SSL_kECDHr) in ssl_check_srvr_ecc_cert_and_alg() 2434 if ((alg_k & SSL_kECDHe) && TLS1_get_version(s) < TLS1_2_VERSION) in ssl_check_srvr_ecc_cert_and_alg() 2443 if ((alg_k & SSL_kECDHr) && TLS1_get_version(s) < TLS1_2_VERSION) in ssl_check_srvr_ecc_cert_and_alg() 2472 unsigned long alg_k,alg_a; in ssl_get_server_send_pkey() local 2479 alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl_get_server_send_pkey() 2482 if (alg_k & (SSL_kECDHr|SSL_kECDHe)) in ssl_get_server_send_pkey() 2501 else if (alg_k & SSL_kDHr) in ssl_get_server_send_pkey() 2503 else if (alg_k & SSL_kDHd) in ssl_get_server_send_pkey()
|
D | t1_lib.c | 1987 unsigned long alg_k, alg_a; in ssl_prepare_clienthello_tlsext() local 1994 alg_k = c->algorithm_mkey; in ssl_prepare_clienthello_tlsext() 1996 if ((alg_k & (SSL_kEECDH|SSL_kECDHr|SSL_kECDHe) || (alg_a & SSL_aECDSA))) in ssl_prepare_clienthello_tlsext() 2079 unsigned long alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl_prepare_serverhello_tlsext() local 2081 int using_ecc = (alg_k & (SSL_kEECDH|SSL_kECDHr|SSL_kECDHe)) || (alg_a & SSL_aECDSA); in ssl_prepare_serverhello_tlsext() 2272 unsigned long alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl_check_serverhello_tlsext() local 2276 ((alg_k & (SSL_kEECDH|SSL_kECDHr|SSL_kECDHe)) || (alg_a & SSL_aECDSA))) in ssl_check_serverhello_tlsext()
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | s3_clnt.c | 1149 long n,alg_k,alg_a; in ssl3_get_server_key_exchange() local 1228 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_get_server_key_exchange() 1270 if (alg_k & SSL_kRSA) in ssl3_get_server_key_exchange() 1318 else if (alg_k & SSL_kEDH) in ssl3_get_server_key_exchange() 1370 else if (alg_k & SSL_kEECDH) in ssl3_get_server_key_exchange() 1459 else if (!(alg_k & SSL_kPSK)) in ssl3_get_server_key_exchange() 1874 unsigned long alg_k; in ssl3_send_client_key_exchange() local 1891 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_send_client_key_exchange() 1930 if (!(alg_k & SSL_kEECDH)) in ssl3_send_client_key_exchange() 1971 if (alg_k & SSL_kRSA) in ssl3_send_client_key_exchange() [all …]
|
D | s3_srvr.c | 1284 unsigned long alg_k; in ssl3_send_server_key_exchange() local 1296 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_send_server_key_exchange() 1314 if (alg_k & SSL_kEDH) in ssl3_send_server_key_exchange() 1365 if (alg_k & SSL_kEECDH) in ssl3_send_server_key_exchange() 1489 if (!(alg_k & SSL_kPSK)) in ssl3_send_server_key_exchange() 1545 if (alg_k & SSL_kEECDH) in ssl3_send_server_key_exchange() 1750 unsigned long alg_k; in ssl3_get_client_key_exchange() local 1778 alg_k=s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_get_client_key_exchange() 1790 ((alg_k & SSL_kPSK) && CBS_len(&client_key_exchange) != 0)) in ssl3_get_client_key_exchange() 1838 if (alg_k & SSL_kRSA) in ssl3_get_client_key_exchange() [all …]
|
D | s3_lib.c | 1786 unsigned long alg_k,alg_a,mask_k,mask_a; in ssl3_choose_cipher() local 1858 alg_k=c->algorithm_mkey; in ssl3_choose_cipher() 1865 ok = ok && (alg_k & mask_k) && (alg_a & mask_a); in ssl3_choose_cipher() 1867 printf("%d:[%08lX:%08lX:%08lX:%08lX]%p:%s\n",ok,alg_k,alg_a,mask_k,mask_a,(void *)c, in ssl3_choose_cipher() 1873 if (alg_k & SSL_kEECDH) in ssl3_choose_cipher()
|
D | t1_lib.c | 896 unsigned long alg_k, alg_a; in ssl_add_clienthello_tlsext() local 903 alg_k = c->algorithm_mkey; in ssl_add_clienthello_tlsext() 905 if ((alg_k & SSL_kEECDH) || (alg_a & SSL_aECDSA)) in ssl_add_clienthello_tlsext() 1204 unsigned long alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl_add_serverhello_tlsext() local 1206 int using_ecc = (alg_k & SSL_kEECDH) || (alg_a & SSL_aECDSA); in ssl_add_serverhello_tlsext() 2175 unsigned long alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl_check_serverhello_tlsext() local 2179 ((alg_k & SSL_kEECDH) || (alg_a & SSL_aECDSA))) in ssl_check_serverhello_tlsext()
|