diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2017-08-04 23:41:08 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2017-08-04 23:41:08 +0200 |
commit | 245a41f1fa992fefb396fc4591a2bbdd6858e525 (patch) | |
tree | 7f5d0ca929f2af891205f49f918d2222f0c8a7ce /sign.go | |
parent | 8084465e13ee600c733b709059dfbaa753603674 (diff) |
Split names
Diffstat (limited to 'sign.go')
-rw-r--r-- | sign.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |