aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsina <sina@snix.ir>2022-07-30 17:14:53 +0430
committersina <sina@snix.ir>2022-07-30 17:14:53 +0430
commit339b7de27b17a830750c050377f3f452cc45f1cc (patch)
treebdd620b46031bd810604db92864ed0ee11543ed3
parent3449c5feab5d27bf395c12a5ad68396412a28577 (diff)
commit git
-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