aboutsummaryrefslogtreecommitdiff
path: root/rabbit.go
diff options
context:
space:
mode:
Diffstat (limited to 'rabbit.go')
-rw-r--r--rabbit.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/rabbit.go b/rabbit.go
index 3d77daa..fe88c92 100644
--- a/rabbit.go
+++ b/rabbit.go
@@ -5,6 +5,8 @@ import (
"encoding/binary"
"errors"
"math/bits"
+
+ "rabbitio/subtle"
)
const (
@@ -141,7 +143,7 @@ func (r *rabbitCipher) XORKeyStream(dst, src []byte) {
panic("rabbitio: output smaller than input")
}
- if InexactOverlap(dst, src) {
+ if subtle.InexactOverlap(dst, src) {
panic("rabbitio: invalid buffer memory overlap")
}

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