diff options
Diffstat (limited to 'gensignkey.c')
-rw-r--r-- | gensignkey.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gensignkey.c b/gensignkey.c index 34b6f5a..674d81f 100644 --- a/gensignkey.c +++ b/gensignkey.c @@ -4,6 +4,7 @@ #include "ecdsa.h" #include "genrsa.h" #include "gendss.h" +#include "gened25519.h" #include "signkey.h" #include "dbrandom.h" @@ -69,6 +70,10 @@ static int get_default_bits(enum signkey_type keytype) case DROPBEAR_SIGNKEY_ECDSA_NISTP256: return 256; #endif +#if DROPBEAR_ED25519 + case DROPBEAR_SIGNKEY_ED25519: + return 256; +#endif default: return 0; } @@ -119,6 +124,11 @@ int signkey_generate(enum signkey_type keytype, int bits, const char* filename, } break; #endif +#if DROPBEAR_ED25519 + case DROPBEAR_SIGNKEY_ED25519: + key->ed25519key = gen_ed25519_priv_key(bits); + break; +#endif default: dropbear_exit("Internal error"); } |