From b04024bd2de0382388d4222c903fd0018cc67d02 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 17 Sep 2017 15:19:10 +0200 Subject: changed KeyDerivation Interface to use provided memory rather then allocatiing one --- satp/crypto-kd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3