aboutsummaryrefslogtreecommitdiff
path: root/keys.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-14 18:32:05 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-14 18:32:05 +0200
commitde4003cb28ef5f7f257aad15034917587668a8ed (patch)
tree0657a63f6bb397bd2b266266f02198f172e4fc05 /keys.go
parent550f28d6937c01c998f582aebf27a6a8d6c2906d (diff)
cleanup
Diffstat (limited to 'keys.go')
-rw-r--r--keys.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/keys.go b/keys.go
index d64399c..f12c6f0 100644
--- a/keys.go
+++ b/keys.go
@@ -38,15 +38,6 @@ type EncKey struct {
SecKey [ed25519.PrivateKeySize]byte
}
-func xor(text, key []byte) {
- if len(text) != len(key) {
- return
- }
- for i := 0; i < len(text); i++ {
- text[i] ^= key[i]
- }
-}
-
func (v *EncKey) IsValid(pass []byte) bool {
if v.KDFRounds > 0 {
key := bhash.Pbkdf(pass, v.Salt[:], int(v.KDFRounds), len(v.SecKey))