aboutsummaryrefslogtreecommitdiff
path: root/keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'keys.go')
-rw-r--r--keys.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/keys.go b/keys.go
index 08c3ff4..c0429b5 100644
--- a/keys.go
+++ b/keys.go
@@ -105,6 +105,10 @@ func (e *EncKey) Kdf(pass string, rounds int) {
e.KDFRounds = uint32(rounds)
}
+func (e *EncKey) Rounds() int {
+ return int(e.KDFRounds)
+}
+
func Unmarshal(b []byte, v interface{}) error {
buf := bytes.NewReader(b)
if err := binary.Read(buf, binary.BigEndian, v); err != nil {