Lines Matching refs:deskey
41 * encryptsessionkey(agent, deskey) - encrypt a session key to talk to agent
42 * decryptsessionkey(agent, deskey) - decrypt ditto
43 * gendeskey(deskey) - generate a secure des key
290 des_block *deskey)
297 arg.deskey = *deskey;
305 *deskey = res.cryptkeyres_u.deskey;
315 des_block deskey[],
329 if (key_encryptsession_pk(remotename, &npk, &deskey[i]))
339 arg.deskey.deskeyarray_len = keynum;
340 arg.deskey.deskeyarray_val = deskey;
342 res.cryptkeyres3_u.deskey.deskeyarray_val = deskey;
351 if (res.cryptkeyres3_u.deskey.deskeyarray_len != keynum) {
360 des_block *deskey)
367 arg.deskey = *deskey;
375 *deskey = res.cryptkeyres_u.deskey;
385 des_block deskey[],
400 &npk, &deskey[i]))
408 arg.deskey.deskeyarray_len = keynum;
409 arg.deskey.deskeyarray_val = deskey;
413 res.cryptkeyres3_u.deskey.deskeyarray_val = deskey;
422 if (res.cryptkeyres3_u.deskey.deskeyarray_len != keynum) {
430 key_encryptsession(const char *remotename, des_block *deskey)
436 arg.deskey = *deskey;
444 *deskey = res.cryptkeyres_u.deskey;
453 des_block deskey[],
461 return (key_encryptsession(remotename, deskey));
465 arg.deskey.deskeyarray_len = keynum;
466 arg.deskey.deskeyarray_val = deskey;
469 res.cryptkeyres3_u.deskey.deskeyarray_val = deskey;
477 if (res.cryptkeyres3_u.deskey.deskeyarray_len != keynum) {
486 key_decryptsession(const char *remotename, des_block *deskey)
492 arg.deskey = *deskey;
500 *deskey = res.cryptkeyres_u.deskey;
509 des_block deskey[],
517 return (key_decryptsession(remotename, deskey));
521 arg.deskey.deskeyarray_len = keynum;
522 arg.deskey.deskeyarray_val = deskey;
525 res.cryptkeyres3_u.deskey.deskeyarray_val = deskey;
533 if (res.cryptkeyres3_u.deskey.deskeyarray_len != keynum) {
551 des_block deskey[],
557 res.deskeyarray_val = deskey;
716 key_get_conv(char *pkey, des_block *deskey)
727 *deskey = res.cryptkeyres_u.deskey;
736 des_block deskey[],
744 return (key_get_conv((char *)pkey, deskey));
751 res.cryptkeyres3_u.deskey.deskeyarray_val = deskey;
759 if (res.cryptkeyres3_u.deskey.deskeyarray_len != keynum) {