We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac913b commit eac02f6Copy full SHA for eac02f6
1 file changed
vlib/crypto/cipher/ofb.v
@@ -52,10 +52,8 @@ pub fn (mut x Ofb) xor_key_stream(mut dst []u8, src []u8) {
52
if x.out_used == x.out.len {
53
x.b.encrypt(mut x.out, x.next)
54
x.out_used = 0
55
+ copy(mut x.next, x.out)
56
}
-
57
- copy(mut x.next, x.out)
58
59
n := xor_bytes(mut local_dst, local_src, x.out[x.out_used..])
60
local_dst = local_dst[n..]
61
local_src = local_src[n..]
0 commit comments