aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-18 20:15:16 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-18 20:15:16 +0200
commit71e2fd608ccc0e6e85833a70df253cf0cfae9607 (patch)
tree805611f8719edfc7c0c438477e8388a66d1fb2b5 /main.go
parent12e5f9b5d1688e6c896801a15364c59dea5a301e (diff)
Add bcrypt_pbdkf
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 4 insertions, 22 deletions
diff --git a/main.go b/main.go
index 7e26857..422eb4f 100644
--- a/main.go
+++ b/main.go
@@ -5,9 +5,6 @@ import (
"encoding/base64"
"flag"
"fmt"
- "os"
-
- "golang.org/x/crypto/ed25519"
)
var (
@@ -16,9 +13,10 @@ var (
)
const (
- verFailed = "signature verfication failed"
- verOK = "Signature Verfied"
- KeyNumLen = 8
+ verFailed = "signature verfication failed"
+ verOK = "Signature Verfied"
+ KeyNumLen = 8
+ DefaultRounds = 42
)
/*
@@ -68,19 +66,3 @@ func main() {
ms, _ := ss.Marshal()
fmt.Println(string(ms))
}
-
-func Generate(pubFile, secFile, comment string, rounds int) error {
- pub, sec, err := ed25519.GenerateKey(rand.Reader)
- if err != nil {
- return err
- }
- b64 := base64.NewEncoder(base64.StdEncoding, os.Stdout)
- fmt.Println("pub", len(pub), pub)
- b64.Write(pub)
- fmt.Println("sec", len(sec), sec)
- b64.Write(sec)
- return nil
-}
-
-func Sign() {}
-func Verify() {}