Lines Matching refs:public
82 keybuf public;
450 cachehit3(keybuf3 *public, keybuf3 *secret, struct cachekey3_list *cp)
452 return (cmpkeybuf3(public, cp->public) &&
699 * Encrypt the key using the public key associated with remote_name and the
713 * Encrypt the key using the public key associated with remote_name and the
727 * Decrypt the key using the public key associated with remote_name and the
741 * Decrypt the key using the public key associated with remote_name and the
926 keybuf3 *secret, *public;
934 if ((public = getkeybuf3(bytelen+1)) == NULL) {
940 * public->keybuf3_val, public->keybuf3_len);
942 * so we continue to return a zero filled public key
945 memset(public->keybuf3_val, 0, bytelen+1);
948 tmp.st_pub_key = *public;
949 free(public);
1156 (memcmp(pub, (list)->public, sizeof (keybuf)) == 0 && \
1196 memcpy(new->public, pub, sizeof (keybuf));
1285 MINT *public;
1318 public = mp_xtom(xpublic);
1320 /* Sanity Check on public and private keys */
1321 if (public == NULL || secret == NULL) {
1326 mp_pow(public, secret, MODULUS, common);
1330 mp_mfree(public);
1352 debug(KEYSERV_DEBUG, ("hash_keys3 public %d %s",
1365 map_ps2cache(keybuf3 *public, keybuf3 *secret, struct psdata *pdp)
1368 int hash = hash_keys3(public, secret);
1372 *cpp != NULL && !(cachehit3(public, secret, *cpp));
1385 keybuf3 *public,
1398 keylen, algtype, desarylen, public, secret));
1413 cpp = map_ps2cache(public, secret, pdp);
1421 public, cu->key)) != NULL) {
1447 if ((cp->public = cpykeybuf3(public)) == NULL) {
1460 cp->public, cp->secret,
1464 if (!__gen_common_dhkeys_g(public->keybuf3_val,
1481 cu->key, public, secret);
1648 MINT *public;
1675 public = mp_xtom(xpublic);
1677 /* Sanity Check on public and private keys */
1678 if (public == NULL || secret == NULL) {
1683 mp_pow(public, secret, MODULUS, common);
1688 mp_mfree(public);