Home
last modified time | relevance | path

Searched refs:pkeys (Results 1 – 22 of 22) sorted by relevance

/external/zlib/src/contrib/minizip/
Dcrypt.h35 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/chromium_org/third_party/zlib/contrib/minizip/
Dcrypt.h35 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/openssl/patches/
Dtls12_digests.patch104 - 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 …]
Djsse.patch392 + if (ssl->cert->pkeys[i].x509 == x)
393 + return ssl->cert->pkeys[i].cert_chain;
/external/chromium_org/third_party/openssl/openssl/ssl/
Dssl_cert.c167 cert->pkeys[SSL_PKEY_DSA_SIGN].digest = EVP_sha1(); in ssl_cert_set_default_md()
170 cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); in ssl_cert_set_default_md()
171 cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); in ssl_cert_set_default_md()
174 cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); in ssl_cert_set_default_md()
190 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); in ssl_cert_new()
210 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup()
277 if (cert->pkeys[i].x509 != NULL) in ssl_cert_dup()
279 ret->pkeys[i].x509 = cert->pkeys[i].x509; in ssl_cert_dup()
280 CRYPTO_add(&ret->pkeys[i].x509->references, 1, in ssl_cert_dup()
284 if (cert->pkeys[i].privatekey != NULL) in ssl_cert_dup()
[all …]
Dssl_rsa.c193 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 …]
Ds3_lib.c3202 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctrl()
3203 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))) in ssl3_ctrl()
3523 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctx_ctrl()
3524 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))) in ssl3_ctx_ctrl()
3981 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL) in ssl3_choose_cipher()
3986 (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info != NULL) in ssl3_choose_cipher()
3987 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key != NULL) in ssl3_choose_cipher()
3988 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key != NULL) in ssl3_choose_cipher()
3989 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data != NULL) in ssl3_choose_cipher()
3991 …(*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRE… in ssl3_choose_cipher()
[all …]
Dt1_lib.c2421 c->pkeys[SSL_PKEY_DSA_SIGN].digest = NULL; in tls1_process_sigalgs()
2422 c->pkeys[SSL_PKEY_RSA_SIGN].digest = NULL; in tls1_process_sigalgs()
2423 c->pkeys[SSL_PKEY_RSA_ENC].digest = NULL; in tls1_process_sigalgs()
2424 c->pkeys[SSL_PKEY_ECC].digest = NULL; in tls1_process_sigalgs()
2451 if (c->pkeys[idx].digest == NULL) in tls1_process_sigalgs()
2456 c->pkeys[idx].digest = md; in tls1_process_sigalgs()
2458 c->pkeys[SSL_PKEY_RSA_ENC].digest = md; in tls1_process_sigalgs()
2469 if (!c->pkeys[SSL_PKEY_DSA_SIGN].digest) in tls1_process_sigalgs()
2470 c->pkeys[SSL_PKEY_DSA_SIGN].digest = EVP_sha1(); in tls1_process_sigalgs()
2473 if (!c->pkeys[SSL_PKEY_RSA_SIGN].digest) in tls1_process_sigalgs()
[all …]
Ds2_srvr.c443 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()
Dssl_lib.c2082 cpk= &(c->pkeys[SSL_PKEY_RSA_ENC]); in ssl_set_cert_masks()
2085 cpk= &(c->pkeys[SSL_PKEY_RSA_SIGN]); in ssl_set_cert_masks()
2087 cpk= &(c->pkeys[SSL_PKEY_DSA_SIGN]); in ssl_set_cert_masks()
2089 cpk= &(c->pkeys[SSL_PKEY_DH_RSA]); in ssl_set_cert_masks()
2092 cpk= &(c->pkeys[SSL_PKEY_DH_DSA]); in ssl_set_cert_masks()
2096 cpk= &(c->pkeys[SSL_PKEY_ECC]); in ssl_set_cert_masks()
2111 cpk = &(c->pkeys[SSL_PKEY_GOST01]); in ssl_set_cert_masks()
2116 cpk = &(c->pkeys[SSL_PKEY_GOST94]); in ssl_set_cert_masks()
2177 x = (c->pkeys[SSL_PKEY_ECC]).x509; in ssl_set_cert_masks()
2367 if (c->pkeys[SSL_PKEY_RSA_ENC].x509 == NULL) in ssl_get_server_send_pkey()
[all …]
Ds3_srvr.c487 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_ssl3_meth_func()
489 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_ssl3_meth_func()
2211 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange()
2575 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; in ssl3_get_client_key_exchange()
2855 pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; in ssl3_get_client_key_exchange()
2857 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in ssl3_get_client_key_exchange()
Dd1_srvr.c478 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_dtls1_meth_func()
480 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_dtls1_meth_func()
Dssl_locl.h533 CERT_PKEY pkeys[SSL_PKEY_NUM]; member
/external/openssl/ssl/
Dssl_cert.c175 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 …]
Dssl_rsa.c193 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 …]
Ds3_lib.c3155 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctrl()
3156 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))) in ssl3_ctrl()
3478 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctx_ctrl()
3479 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))) in ssl3_ctx_ctrl()
3936 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL) in ssl3_choose_cipher()
3941 (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info != NULL) in ssl3_choose_cipher()
3942 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key != NULL) in ssl3_choose_cipher()
3943 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key != NULL) in ssl3_choose_cipher()
3944 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data != NULL) in ssl3_choose_cipher()
3946 …(*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRE… in ssl3_choose_cipher()
[all …]
Ds2_srvr.c443 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()
Dssl_lib.c2169 cpk= &(c->pkeys[SSL_PKEY_RSA_ENC]); in ssl_set_cert_masks()
2172 cpk= &(c->pkeys[SSL_PKEY_RSA_SIGN]); in ssl_set_cert_masks()
2174 cpk= &(c->pkeys[SSL_PKEY_DSA_SIGN]); in ssl_set_cert_masks()
2176 cpk= &(c->pkeys[SSL_PKEY_DH_RSA]); in ssl_set_cert_masks()
2179 cpk= &(c->pkeys[SSL_PKEY_DH_DSA]); in ssl_set_cert_masks()
2183 cpk= &(c->pkeys[SSL_PKEY_ECC]); in ssl_set_cert_masks()
2198 cpk = &(c->pkeys[SSL_PKEY_GOST01]); in ssl_set_cert_masks()
2203 cpk = &(c->pkeys[SSL_PKEY_GOST94]); in ssl_set_cert_masks()
2264 x = (c->pkeys[SSL_PKEY_ECC]).x509; in ssl_set_cert_masks()
2454 if (c->pkeys[SSL_PKEY_RSA_ENC].x509 == NULL) in ssl_get_server_send_pkey()
[all …]
Ds3_srvr.c487 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_ssl3_meth_func()
489 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_ssl3_meth_func()
2210 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange()
2574 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; in ssl3_get_client_key_exchange()
2854 pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; in ssl3_get_client_key_exchange()
2856 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in ssl3_get_client_key_exchange()
Dd1_srvr.c478 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_dtls1_meth_func()
480 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_dtls1_meth_func()
Dssl_locl.h516 CERT_PKEY pkeys[SSL_PKEY_NUM]; member
/external/chromium_org/third_party/openssl/openssl/patches/
Djsse.patch390 + if (ssl->cert->pkeys[i].x509 == x)
391 + return ssl->cert->pkeys[i].cert_chain;