aboutsummaryrefslogtreecommitdiff
path: root/cipher.go
diff options
context:
space:
mode:
Diffstat (limited to 'cipher.go')
-rw-r--r--cipher.go2
1 files changed, 1 insertions, 1 deletions
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
}

Snix LLC Git Repository Holder Copyright(C) 2022 All Rights Reserved Email To Snix.IR