summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2017-09-17 15:19:10 +0200
committerChristian Pointner <equinox@anytun.org>2017-09-17 15:19:10 +0200
commitb04024bd2de0382388d4222c903fd0018cc67d02 (patch)
tree77edb1b94bc881877ab3001a200d9ef199b32b56
parentminor refactoring (diff)
changed KeyDerivation Interface to use provided memory rather then allocatiing one
-rw-r--r--satp/crypto-kd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/satp/crypto-kd.go b/satp/crypto-kd.go
index b2b63df..39a3d01 100644
--- a/satp/crypto-kd.go
+++ b/satp/crypto-kd.go
@@ -51,7 +51,7 @@ const (
)
type KeyDerivation interface {
- Generate(dir KeyDirection, usage KeyUsage, sequenceNumber uint32) ([]byte, error)
+ Generate(dir KeyDirection, usage KeyUsage, sequenceNumber uint32, out []byte) error
}
func getLabel(dir KeyDirection, usage KeyUsage) uint32 {