Lines Matching defs:xpublic
1282 char xpublic[1024];
1301 memcpy(xpublic, remote_key->n_bytes, remote_key->n_len);
1303 if (!getpublickey(remote_name, xpublic)) {
1304 if (nodefaultkeys || !getpublickey("nobody", xpublic))
1310 xpublic[HEXKEYBYTES] = '\0';
1312 hash = hash_keys(xpublic, xsecret);
1314 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1317 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1318 public = mp_xtom(xpublic);
1328 writecache(xpublic, xsecret, &deskey, hash);
1497 keybuf3 *xsecret, *xpublic;
1524 xpublic = &arg->pub_key;
1526 xpublic, xsecret, uid)) == NULL) {
1544 keybuf3 *xsecret = NULL, *xpublic = NULL;
1578 if ((xpublic = cpykeybuf3(&arg->remotekey)) == NULL) {
1583 if ((xpublic = getkeybuf3(arg->keylen/4+1)) == NULL) {
1590 xpublic->keybuf3_val, xpublic->keybuf3_len)) {
1595 xpublic->keybuf3_val, xpublic->keybuf3_len)) {
1599 freekeybuf3(xpublic);
1608 arg->deskey.deskeyarray_len, xpublic, xsecret, uid)) == NULL) {
1610 freekeybuf3(xpublic);
1629 freekeybuf3(xpublic);
1636 freekeybuf3(xpublic);
1647 char xpublic[1024];
1664 memcpy(xpublic, pubkey, sizeof (keybuf));
1666 xpublic[HEXKEYBYTES] = '\0';
1668 hash = hash_keys(xpublic, xsecret);
1670 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey, hash)) {
1673 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey,
1675 public = mp_xtom(xpublic);
1685 writecache(xpublic, xsecret,