From 339b7de27b17a830750c050377f3f452cc45f1cc Mon Sep 17 00:00:00 2001 From: sina Date: Sat, 30 Jul 2022 17:14:53 +0430 Subject: commit git --- cipher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipher.go b/cipher.go index 37c96f2..89441c3 100644 --- a/cipher.go +++ b/cipher.go @@ -30,7 +30,7 @@ func newRabbitAead(key []byte) (cipher.AEAD, error) { noncesize: rabbitio.IVXLen, key: make([]byte, rabbitio.KeyLen), } - copy(rabbitAead.key[:], key) + copy(rabbitAead.key, key) return rabbitAead, nil } -- cgit v1.2.3