aboutsummaryrefslogtreecommitdiff
path: root/ask
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-07-19 00:56:21 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-07-19 00:56:21 +0200
commitccb10d4fd0eec1437901ec143df646f405ec6073 (patch)
treecb222b7a8a29f9f5dce7221afbe0e528dd50b4a3 /ask
parent192414f67f722599467ab621c7348e41574fd759 (diff)
...
Diffstat (limited to 'ask')
-rw-r--r--ask/ask.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ask/ask.go b/ask/ask.go
index 253245e..205ad4c 100644
--- a/ask/ask.go
+++ b/ask/ask.go
@@ -23,7 +23,7 @@ const (
type Passphrase struct{}
-func (Passphrase) DeriveKey(salt []byte, rounds int, length int) ([]byte, error) {
+func (Passphrase) Derive(salt []byte, rounds int, length int) ([]byte, error) {
pass, err := passphrase()
if err != nil {
return nil, err
@@ -33,7 +33,7 @@ func (Passphrase) DeriveKey(salt []byte, rounds int, length int) ([]byte, error)
type Confirmed struct{}
-func (Confirmed) DeriveKey(salt []byte, rounds int, length int) ([]byte, error) {
+func (Confirmed) Derive(salt []byte, rounds int, length int) ([]byte, error) {
pass, err := confirmed()
if err != nil {
return nil, err