aboutsummaryrefslogtreecommitdiff
path: root/sign.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-04 23:41:08 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-04 23:41:08 +0200
commit245a41f1fa992fefb396fc4591a2bbdd6858e525 (patch)
tree7f5d0ca929f2af891205f49f918d2222f0c8a7ce /sign.go
parent8084465e13ee600c733b709059dfbaa753603674 (diff)
Split names
Diffstat (limited to 'sign.go')
-rw-r--r--sign.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/sign.go b/sign.go
index 1a9fec7..ccdd643 100644
--- a/sign.go
+++ b/sign.go
@@ -29,7 +29,7 @@ func sign(args []string) error {
return nil
}
if *sigFile == "" {
- *sigFile = b64file.SigName(*msgFile)
+ *sigFile = SigName(*msgFile)
}
switch {
@@ -62,8 +62,8 @@ func signPlain(secFile, msgFile, sigFile string) error {
return err
}
sig := sec.Sign(msg)
- comment := b64file.VerifyWith(secFile)
- return b64file.EncodeFile(sigFile, b64file.ModeSig, sig, comment, nil)
+ comment := VerifyWith(secFile)
+ return b64file.EncodeFile(sigFile, ModeSig, sig, comment, nil)
}
func signEmbedded(secFile, msgFile, sigFile string) error {
@@ -76,8 +76,8 @@ func signEmbedded(secFile, msgFile, sigFile string) error {
return err
}
sig := sec.Sign(msg)
- comment := b64file.VerifyWith(secFile)
- return b64file.EncodeFile(sigFile, b64file.ModeSig, sig, comment, msg)
+ comment := VerifyWith(secFile)
+ return b64file.EncodeFile(sigFile, ModeSig, sig, comment, msg)
}
// TODO