Lines Matching refs:pub_key
2345 ASN1_INTEGER *pub_key = NULL;
2395 print_pubkey(cryptoctx->dh->pub_key, "client's pub_key=");
2398 DH_check_pub_key(cryptoctx->dh, cryptoctx->dh->pub_key, &dh_err);
2419 if ((pub_key = BN_to_ASN1_INTEGER(cryptoctx->dh->pub_key, NULL)) == NULL)
2421 *dh_pubkey_len = i2d_ASN1_INTEGER(pub_key, NULL);
2427 i2d_ASN1_INTEGER(pub_key, &buf);
2429 if (pub_key != NULL)
2430 ASN1_INTEGER_free(pub_key);
2445 if (pub_key != NULL)
2446 ASN1_INTEGER_free(pub_key);
2465 ASN1_INTEGER *pub_key = NULL;
2487 if ((pub_key = d2i_ASN1_INTEGER(NULL, &p, data_len)) == NULL)
2489 if ((server_pub_key = ASN1_INTEGER_to_BN(pub_key, NULL)) == NULL)
2494 print_pubkey(server_pub_key, "server's pub_key=");
2502 if (pub_key != NULL)
2503 ASN1_INTEGER_free(pub_key);
2513 if (pub_key != NULL)
2514 ASN1_INTEGER_free(pub_key);
2599 ASN1_INTEGER *pub_key = NULL;
2613 pub_key = d2i_ASN1_INTEGER(NULL, (const unsigned char **)&p, (int)data_len);
2614 if (pub_key == NULL)
2616 dh->pub_key = ASN1_INTEGER_to_BN(pub_key, NULL);
2617 if (dh->pub_key == NULL)
2619 ASN1_INTEGER_free(pub_key);
2628 DH_compute_key(*server_key, dh->pub_key, dh_server);
2632 print_pubkey(dh->pub_key, "client's pub_key=");
2633 print_pubkey(dh_server->pub_key, "server's pub_key=");
2645 if ((pub_key = BN_to_ASN1_INTEGER(dh_server->pub_key, NULL)) == NULL)
2647 *dh_pubkey_len = i2d_ASN1_INTEGER(pub_key, NULL);
2650 i2d_ASN1_INTEGER(pub_key, &p);
2651 if (pub_key != NULL)
2652 ASN1_INTEGER_free(pub_key);