diff options
author | sina <sina@snix.ir> | 2022-07-30 19:16:47 +0430 |
---|---|---|
committer | sina <sina@snix.ir> | 2022-07-30 19:16:47 +0430 |
commit | 6bdd58a59dc2c03b82c63fe89a729bd161192d71 (patch) | |
tree | d0b9a88f567796459df847a1cd608c6f02a366c8 /rabbit.go | |
parent | e697fd436cabccb32114ebb74d1de9b9516dead3 (diff) |
subtle package
Diffstat (limited to 'rabbit.go')
-rw-r--r-- | rabbit.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") } |