tokey
tokey(context, etype, password, salt, "Kerberos 5 (%s)");
tokey(context, ETYPE_DES_CBC_MD5, password, salt, "Kerberos 4");
tokey(context, ETYPE_DES_CBC_MD5, password, salt, "AFS");
const struct sshkey *tokey, Identity *id, const char *user,
if (tokey != NULL && match_key_hop("to", tokey, &d->to) != 0)
XORKEY *tokey = xor_newkey(NULL);
if (tokey != NULL && fromkey != NULL) {
memcpy(tokey->pubkey, fromkey->pubkey, XOR_KEY_SIZE);
tokey->haspubkey = 1;
tokey->haspubkey = 0;
memcpy(tokey->privkey, fromkey->privkey, XOR_KEY_SIZE);
tokey->hasprivkey = 1;
tokey->hasprivkey = 0;
tokey->tls_name = OPENSSL_strdup(fromkey->tls_name);
xor_freekey(tokey);
tokey = NULL;
return tokey;