Searched refs:pkeys (Results 1 – 9 of 9) sorted by relevance
/external/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/openssl/ssl/ |
D | ssl_cert.c | 175 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); in ssl_cert_new() 195 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup() 260 if (cert->pkeys[i].x509 != NULL) in ssl_cert_dup() 262 ret->pkeys[i].x509 = cert->pkeys[i].x509; in ssl_cert_dup() 263 CRYPTO_add(&ret->pkeys[i].x509->references, 1, in ssl_cert_dup() 267 if (cert->pkeys[i].privatekey != NULL) in ssl_cert_dup() 269 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; in ssl_cert_dup() 270 CRYPTO_add(&ret->pkeys[i].privatekey->references, 1, in ssl_cert_dup() 329 if (ret->pkeys[i].x509 != NULL) in ssl_cert_dup() 330 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 | ssl_lib.c | 1653 cpk= &(c->pkeys[SSL_PKEY_RSA_ENC]); in ssl_set_cert_masks() 1656 cpk= &(c->pkeys[SSL_PKEY_RSA_SIGN]); in ssl_set_cert_masks() 1658 cpk= &(c->pkeys[SSL_PKEY_DSA_SIGN]); in ssl_set_cert_masks() 1660 cpk= &(c->pkeys[SSL_PKEY_DH_RSA]); in ssl_set_cert_masks() 1663 cpk= &(c->pkeys[SSL_PKEY_DH_DSA]); in ssl_set_cert_masks() 1667 cpk= &(c->pkeys[SSL_PKEY_ECC]); in ssl_set_cert_masks() 1731 x = (c->pkeys[SSL_PKEY_ECC]).x509; in ssl_set_cert_masks() 1887 if (c->pkeys[SSL_PKEY_RSA_ENC].x509 == NULL) in ssl_get_server_send_cert() 1902 if (c->pkeys[i].x509 == NULL) return(NULL); in ssl_get_server_send_cert() 1904 return(c->pkeys[i].x509); in ssl_get_server_send_cert() [all …]
|
D | s2_srvr.c | 442 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() 1068 i=i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,NULL); in request_certificate() 1076 i=i2d_X509(s->cert->pkeys[SSL_PKEY_RSA_ENC].x509,&p2); in request_certificate() 1119 if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) in ssl_rsa_private_decrypt() 1124 if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey->type != EVP_PKEY_RSA) in ssl_rsa_private_decrypt() 1129 rsa=c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa; in ssl_rsa_private_decrypt()
|
D | s3_lib.c | 1803 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctrl() 1804 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))) in ssl3_ctrl() 2052 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctx_ctrl() 2053 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))) in ssl3_ctx_ctrl()
|
D | d1_srvr.c | 344 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_dtls1_meth_func() 346 …&& 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 | s3_srvr.c | 372 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_ssl3_meth_func() 374 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_ssl3_meth_func() 1779 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange() 2143 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; in ssl3_get_client_key_exchange()
|
D | ssl_locl.h | 433 CERT_PKEY pkeys[SSL_PKEY_NUM]; member
|