aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/ofb/ofb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/ofb/ofb.cpp')
-rw-r--r--src/stream/ofb/ofb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/ofb/ofb.cpp b/src/stream/ofb/ofb.cpp
index 332673153..6fc8e4b68 100644
--- a/src/stream/ofb/ofb.cpp
+++ b/src/stream/ofb/ofb.cpp
@@ -68,14 +68,14 @@ void OFB::cipher(const byte in[], byte out[], u32bit length)
{
while(length >= buffer.size() - position)
{
- xor_buf(out, in, buffer.begin() + position, buffer.size() - position);
+ xor_buf(out, in, &buffer[position], buffer.size() - position);
length -= (buffer.size() - position);
in += (buffer.size() - position);
out += (buffer.size() - position);
permutation->encrypt(buffer);
position = 0;
}
- xor_buf(out, in, buffer.begin() + position, length);
+ xor_buf(out, in, &buffer[position], length);
position += length;
}