/external/chromium_org/third_party/zlib/contrib/minizip/ |
D | crypt.h | 35 static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab) in decrypt_byte() argument 41 temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2; in decrypt_byte() 48 static int update_keys(unsigned long* pkeys,const unsigned long* pcrc_32_tab,int c) in update_keys() argument 50 (*(pkeys+0)) = CRC32((*(pkeys+0)), c); in update_keys() 51 (*(pkeys+1)) += (*(pkeys+0)) & 0xff; in update_keys() 52 (*(pkeys+1)) = (*(pkeys+1)) * 134775813L + 1; in update_keys() 54 register int keyshift = (int)((*(pkeys+1)) >> 24); in update_keys() 55 (*(pkeys+2)) = CRC32((*(pkeys+2)), keyshift); in update_keys() 65 static void init_keys(const char* passwd,unsigned long* pkeys,const unsigned long* pcrc_32_tab) in init_keys() argument 67 *(pkeys+0) = 305419896L; in init_keys() [all …]
|
/external/zlib/src/contrib/minizip/ |
D | crypt.h | 35 static int decrypt_byte(unsigned long* pkeys, const z_crc_t* pcrc_32_tab) in decrypt_byte() argument 41 temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2; in decrypt_byte() 48 static int update_keys(unsigned long* pkeys,const z_crc_t* pcrc_32_tab,int c) in update_keys() argument 50 (*(pkeys+0)) = CRC32((*(pkeys+0)), c); in update_keys() 51 (*(pkeys+1)) += (*(pkeys+0)) & 0xff; in update_keys() 52 (*(pkeys+1)) = (*(pkeys+1)) * 134775813L + 1; in update_keys() 54 register int keyshift = (int)((*(pkeys+1)) >> 24); in update_keys() 55 (*(pkeys+2)) = CRC32((*(pkeys+2)), keyshift); in update_keys() 65 static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t* pcrc_32_tab) in init_keys() argument 67 *(pkeys+0) = 305419896L; in init_keys() [all …]
|
/external/openssl/patches/ |
D | 0007-tls12_digests.patch | 104 - cert->pkeys[SSL_PKEY_DSA_SIGN].digest = EVP_sha1(); 107 - cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); 108 - cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); 111 - cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); 120 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); 156 - (c->pkeys[SSL_PKEY_DSA_SIGN].privatekey != NULL)) 158 + (c->pkeys[SSL_PKEY_DSA_SIGN].privatekey != NULL)) 162 + return c->pkeys[SSL_PKEY_DSA_SIGN].privatekey; 168 if (c->pkeys[SSL_PKEY_RSA_SIGN].privatekey != NULL) 170 - else if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey != NULL) [all …]
|
D | 0003-jsse.patch | 400 + if (ssl->cert->pkeys[i].x509 == x) 401 + return ssl->cert->pkeys[i].cert_chain;
|
D | 0011-ecdhe_psk.patch | 1273 - pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; 1275 - pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; 1343 + pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; 1345 + pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey;
|
/external/openssl/ssl/ |
D | ssl_cert.c | 175 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); in ssl_cert_new() 194 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup() 261 if (cert->pkeys[i].x509 != NULL) in ssl_cert_dup() 263 ret->pkeys[i].x509 = cert->pkeys[i].x509; in ssl_cert_dup() 264 CRYPTO_add(&ret->pkeys[i].x509->references, 1, in ssl_cert_dup() 268 if (cert->pkeys[i].privatekey != NULL) in ssl_cert_dup() 270 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; in ssl_cert_dup() 271 CRYPTO_add(&ret->pkeys[i].privatekey->references, 1, in ssl_cert_dup() 330 if (ret->pkeys[i].x509 != NULL) in ssl_cert_dup() 331 X509_free(ret->pkeys[i].x509); in ssl_cert_dup() [all …]
|
D | ssl_rsa.c | 193 if (c->pkeys[i].x509 != NULL) in ssl_set_pkey() 196 pktmp = X509_get_pubkey(c->pkeys[i].x509); in ssl_set_pkey() 209 if (!X509_check_private_key(c->pkeys[i].x509,pkey)) in ssl_set_pkey() 211 X509_free(c->pkeys[i].x509); in ssl_set_pkey() 212 c->pkeys[i].x509 = NULL; in ssl_set_pkey() 217 if (c->pkeys[i].privatekey != NULL) in ssl_set_pkey() 218 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey() 220 c->pkeys[i].privatekey=pkey; in ssl_set_pkey() 221 c->key= &(c->pkeys[i]); in ssl_set_pkey() 414 if (c->pkeys[i].privatekey != NULL) in ssl_set_cert() [all …]
|
D | s3_lib.c | 3195 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctrl() 3196 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))) in ssl3_ctrl() 3543 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctx_ctrl() 3544 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))) in ssl3_ctx_ctrl() 4007 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL) in ssl3_choose_cipher() 4012 (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info != NULL) in ssl3_choose_cipher() 4013 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key != NULL) in ssl3_choose_cipher() 4014 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key != NULL) in ssl3_choose_cipher() 4015 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data != NULL) in ssl3_choose_cipher() 4017 …(*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRE… in ssl3_choose_cipher() [all …]
|
D | s2_srvr.c | 443 if (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) in get_client_master_key() 774 n=i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,NULL); in server_hello() 776 i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,&d); in server_hello() 1069 i=i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,NULL); in request_certificate() 1077 i=i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,&p2); in request_certificate() 1124 if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) in ssl_rsa_private_decrypt() 1129 if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey->type != EVP_PKEY_RSA) in ssl_rsa_private_decrypt() 1134 rsa=c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa; in ssl_rsa_private_decrypt()
|
D | ssl_lib.c | 2224 cpk= &(c->pkeys[SSL_PKEY_RSA_ENC]); in ssl_set_cert_masks() 2227 cpk= &(c->pkeys[SSL_PKEY_RSA_SIGN]); in ssl_set_cert_masks() 2229 cpk= &(c->pkeys[SSL_PKEY_DSA_SIGN]); in ssl_set_cert_masks() 2231 cpk= &(c->pkeys[SSL_PKEY_DH_RSA]); in ssl_set_cert_masks() 2234 cpk= &(c->pkeys[SSL_PKEY_DH_DSA]); in ssl_set_cert_masks() 2238 cpk= &(c->pkeys[SSL_PKEY_ECC]); in ssl_set_cert_masks() 2253 cpk = &(c->pkeys[SSL_PKEY_GOST01]); in ssl_set_cert_masks() 2258 cpk = &(c->pkeys[SSL_PKEY_GOST94]); in ssl_set_cert_masks() 2319 x = (c->pkeys[SSL_PKEY_ECC]).x509; in ssl_set_cert_masks() 2509 if (c->pkeys[SSL_PKEY_RSA_ENC].x509 == NULL) in ssl_get_server_send_pkey() [all …]
|
D | s3_srvr.c | 493 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_ssl3_meth_func() 495 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_ssl3_meth_func() 2351 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange() 2723 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; in ssl3_get_client_key_exchange() 2937 pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; in ssl3_get_client_key_exchange() 2939 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in ssl3_get_client_key_exchange()
|
D | d1_srvr.c | 479 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_dtls1_meth_func() 481 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_dtls1_meth_func()
|
D | ssl_locl.h | 517 CERT_PKEY pkeys[SSL_PKEY_NUM]; member
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | ssl_rsa.c | 193 if (c->pkeys[i].x509 != NULL) in ssl_set_pkey() 196 pktmp = X509_get_pubkey(c->pkeys[i].x509); in ssl_set_pkey() 204 !X509_check_private_key(c->pkeys[i].x509,pkey)) in ssl_set_pkey() 206 X509_free(c->pkeys[i].x509); in ssl_set_pkey() 207 c->pkeys[i].x509 = NULL; in ssl_set_pkey() 212 if (c->pkeys[i].privatekey != NULL) in ssl_set_pkey() 213 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey() 214 c->pkeys[i].privatekey = EVP_PKEY_dup(pkey); in ssl_set_pkey() 215 c->key = &(c->pkeys[i]); in ssl_set_pkey() 406 if (c->pkeys[i].privatekey != NULL) in ssl_set_cert() [all …]
|
D | ssl_cert.c | 162 cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); in ssl_cert_set_default_md() 163 cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); in ssl_cert_set_default_md() 164 cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); in ssl_cert_set_default_md() 179 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); in ssl_cert_new() 198 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup() 251 CERT_PKEY *cpk = cert->pkeys + i; in ssl_cert_dup() 252 CERT_PKEY *rpk = ret->pkeys + i; in ssl_cert_dup() 383 CERT_PKEY *cpk = c->pkeys + i; in ssl_cert_clear_certs() 514 if (c->pkeys[i].x509 == x) in ssl_cert_select_current() 516 c->key = &c->pkeys[i]; in ssl_cert_select_current() [all …]
|
D | t1_lib.c | 1446 s->cert->pkeys[i].digest = NULL; in ssl_scan_clienthello_tlsext() 1447 s->cert->pkeys[i].valid_flags = 0; in ssl_scan_clienthello_tlsext() 2705 c->pkeys[idx].digest = md; in tls1_process_sigalgs() 2706 c->pkeys[idx].valid_flags = CERT_PKEY_EXPLICIT_SIGN; in tls1_process_sigalgs() 2709 c->pkeys[SSL_PKEY_RSA_ENC].valid_flags = CERT_PKEY_EXPLICIT_SIGN; in tls1_process_sigalgs() 2710 c->pkeys[SSL_PKEY_RSA_ENC].digest = md; in tls1_process_sigalgs() 2720 if (idx > 0 && c->pkeys[idx].digest == NULL) in tls1_process_sigalgs() 2723 c->pkeys[idx].digest = md; in tls1_process_sigalgs() 2724 c->pkeys[idx].valid_flags = CERT_PKEY_EXPLICIT_SIGN; in tls1_process_sigalgs() 2727 c->pkeys[SSL_PKEY_RSA_ENC].valid_flags = CERT_PKEY_EXPLICIT_SIGN; in tls1_process_sigalgs() [all …]
|
D | ssl_lib.c | 2193 cpk= &(c->pkeys[SSL_PKEY_RSA_ENC]); in ssl_set_cert_masks() 2195 cpk= &(c->pkeys[SSL_PKEY_RSA_SIGN]); in ssl_set_cert_masks() 2197 cpk= &(c->pkeys[SSL_PKEY_ECC]); in ssl_set_cert_masks() 2225 cpk = &c->pkeys[SSL_PKEY_ECC]; in ssl_set_cert_masks() 2290 if (idx == SSL_PKEY_RSA_ENC && !s->cert->pkeys[SSL_PKEY_RSA_ENC].x509) in ssl_get_server_cert_index() 2320 return &c->pkeys[i]; in ssl_get_server_send_pkey() 2337 idx = c->key - c->pkeys; in ssl_get_sign_pkey() 2343 if (c->pkeys[SSL_PKEY_RSA_SIGN].privatekey != NULL) in ssl_get_sign_pkey() 2345 else if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey != NULL) in ssl_get_sign_pkey() 2349 (c->pkeys[SSL_PKEY_ECC].privatekey != NULL)) in ssl_get_sign_pkey() [all …]
|
D | ssl_locl.h | 468 CERT_PKEY pkeys[SSL_PKEY_NUM]; member
|
D | s3_clnt.c | 1673 s->cert->pkeys[i].digest = NULL; in ssl3_get_certificate_request() 1674 s->cert->pkeys[i].valid_flags = 0; in ssl3_get_certificate_request()
|
D | s3_srvr.c | 1846 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange()
|