/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
if (len > 0 && len <= 4) {
error("passphrase too short: have %d bytes, need > 4", len);
if (len > 0 && len <= 4) {
error("passphrase too short: have %d bytes, need > 4", len);
Key *
key_load_private_type(int type, const char *filename, const char *passphrase,
Key *
key_load_private_type(int type, const char *filename, const char *passphrase,
switch (type) {
case KEY_RSA1:
return key_load_private_rsa1(fd, filename, passphrase,
switch (type) {
case KEY_RSA1:
return key_load_private_rsa1(fd, filename, passphrase,