Lines Matching refs:xpublic
1280 char xpublic[1024]; local
1299 memcpy(xpublic, remote_key->n_bytes, remote_key->n_len);
1301 if (!getpublickey(remote_name, xpublic)) {
1302 if (nodefaultkeys || !getpublickey("nobody", xpublic))
1308 xpublic[HEXKEYBYTES] = '\0';
1310 hash = hash_keys(xpublic, xsecret);
1312 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1315 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1316 public = mp_xtom(xpublic);
1326 writecache(xpublic, xsecret, &deskey, hash);
1495 keybuf3 *xsecret, *xpublic; in pk_get_conv_key3() local
1522 xpublic = &arg->pub_key; in pk_get_conv_key3()
1524 xpublic, xsecret, uid)) == NULL) { in pk_get_conv_key3()
1542 keybuf3 *xsecret = NULL, *xpublic = NULL; in pk_crypt3() local
1576 if ((xpublic = cpykeybuf3(&arg->remotekey)) == NULL) { in pk_crypt3()
1581 if ((xpublic = getkeybuf3(arg->keylen/4+1)) == NULL) { in pk_crypt3()
1588 xpublic->keybuf3_val, xpublic->keybuf3_len)) { in pk_crypt3()
1593 xpublic->keybuf3_val, xpublic->keybuf3_len)) { in pk_crypt3()
1597 freekeybuf3(xpublic); in pk_crypt3()
1606 arg->deskey.deskeyarray_len, xpublic, xsecret, uid)) == NULL) { in pk_crypt3()
1608 freekeybuf3(xpublic); in pk_crypt3()
1627 freekeybuf3(xpublic); in pk_crypt3()
1634 freekeybuf3(xpublic); in pk_crypt3()
1645 char xpublic[1024]; local
1662 memcpy(xpublic, pubkey, sizeof (keybuf));
1664 xpublic[HEXKEYBYTES] = '\0';
1666 hash = hash_keys(xpublic, xsecret);
1668 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey, hash)) {
1671 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey,
1673 public = mp_xtom(xpublic);
1683 writecache(xpublic, xsecret,