Lines Matching refs:uid
91 * Set the secretkey key for this uid
94 pk_setkey(uid, skey)
95 uid_t uid;
98 if (!storesecretkey(uid, skey)) {
106 * secret key associated with uid.
109 pk_encrypt(uid, remote_name, remote_key, key)
110 uid_t uid;
115 return (pk_crypt(uid, remote_name, remote_key, key, DES_ENCRYPT));
120 * secret key associated with uid.
123 pk_decrypt(uid, remote_name, remote_key, key)
124 uid_t uid;
129 return (pk_crypt(uid, remote_name, remote_key, key, DES_DECRYPT));
136 pk_netput(uid, netstore)
137 uid_t uid;
140 if (!store_netname(uid, netstore)) {
147 pk_netget(uid, netstore)
148 uid_t uid;
151 if (!fetch_netname(uid, netstore)) {
162 pk_crypt(uid, remote_name, remote_key, key, mode)
163 uid_t uid;
179 xsecret = fetchsecretkey(uid);
224 pk_get_conv_key(uid, xpublic, result)
225 uid_t uid;
237 xsecret = fetchsecretkey(uid);
309 uid_t uid;
320 * Store the keys and netname for this uid
323 store_netname(uid, netstore)
324 uid_t uid;
330 for (l = &g_secretkey_netname; *l != NULL && (*l)->uid != uid;
338 new->uid = uid;
360 * Fetch the keys and netname for this uid
364 fetch_netname(uid, key_netst)
365 uid_t uid;
371 if ((l->uid == uid) && (l->sc_flag == KEY_NAME)){
392 fetchsecretkey(uid)
393 uid_t uid;
398 if (l->uid == uid) {
406 * Store the secretkey for this uid
409 storesecretkey(uid, key)
410 uid_t uid;
416 for (l = &g_secretkey_netname; *l != NULL && (*l)->uid != uid;
424 new->uid = uid;