aboutsummaryrefslogtreecommitdiff
path: root/gen.go
diff options
context:
space:
mode:
Diffstat (limited to 'gen.go')
-rw-r--r--gen.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/gen.go b/gen.go
index 21b90a2..43cea67 100644
--- a/gen.go
+++ b/gen.go
@@ -3,7 +3,6 @@ package main
import (
"crypto/rand"
"crypto/sha512"
- "fmt"
"golang.org/x/crypto/ed25519"
)
@@ -31,7 +30,7 @@ func Generate(pubkeyfile, seckeyfile, comment string, rounds int) error {
}
sfile := File{
- Comment: fmt.Sprintf("%s secret key", comment),
+ Comment: comment + " secret key",
B64: sb64,
}
if err := sfile.EncodeFile(seckeyfile); err != nil {
@@ -48,7 +47,7 @@ func Generate(pubkeyfile, seckeyfile, comment string, rounds int) error {
return err
}
pfile := File{
- Comment: fmt.Sprintf("%s public key", comment),
+ Comment: comment + " public key",
B64: pb64,
}
if err := pfile.EncodeFile(pubkeyfile); err != nil {