Added Ed25519 key type

This commit is contained in:
Wigy 2016-12-13 15:01:23 +01:00
parent c6d20fd22e
commit 51861455e8
No known key found for this signature in database
GPG Key ID: AFF11C67C4E13357

View File

@ -11,7 +11,7 @@ import (
func main() {
size := flag.Int("bitsize", 2048, "select the bitsize of the key to generate")
typ := flag.String("type", "RSA", "select type of key to generate")
typ := flag.String("type", "RSA", "select type of key to generate (RSA or Ed25519)")
flag.Parse()
@ -19,6 +19,8 @@ func main() {
switch *typ {
case "RSA":
atyp = ci.RSA
case "Ed25519":
atyp = ci.Ed25519
default:
fmt.Fprintln(os.Stderr, "unrecognized key type: ", *typ)
os.Exit(1)