aboutsummaryrefslogtreecommitdiff
path: root/generate.go
diff options
context:
space:
mode:
Diffstat (limited to 'generate.go')
-rw-r--r--generate.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/generate.go b/generate.go
index d912ada..607b566 100644
--- a/generate.go
+++ b/generate.go
@@ -4,7 +4,7 @@ import (
"flag"
"dim13.org/signify/ask"
- "dim13.org/signify/file"
+ "dim13.org/signify/b64file"
"dim13.org/signify/key"
)
@@ -23,7 +23,7 @@ func generate(args []string) error {
opts.Usage()
return nil
}
- if err := file.ValidateNames(*pubFile, *secFile); err != nil {
+ if err := b64file.ValidateNames(*pubFile, *secFile); err != nil {
return err
}
@@ -37,10 +37,10 @@ func generate(args []string) error {
return err
}
- if err := file.EncodeFile(*secFile, file.ModeSec, secKey, *comment+" secret key", nil); err != nil {
+ if err := b64file.EncodeFile(*secFile, b64file.ModeSec, secKey, *comment+" secret key", nil); err != nil {
return err
}
- if err := file.EncodeFile(*pubFile, file.ModePub, pubKey, *comment+" public key", nil); err != nil {
+ if err := b64file.EncodeFile(*pubFile, b64file.ModePub, pubKey, *comment+" public key", nil); err != nil {
return err
}
return nil