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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ofb/ofb.cpp b/src/stream/ofb/ofb.cpp
index 382a2b4dd..02521581b 100644
--- a/src/stream/ofb/ofb.cpp
+++ b/src/stream/ofb/ofb.cpp
@@ -84,7 +84,7 @@ void OFB::set_iv(const byte iv[], size_t iv_len)
throw Invalid_IV_Length(name(), iv_len);
zeroise(buffer);
- buffer.copy(0, iv, iv_len);
+ buffer_insert(buffer, 0, iv, iv_len);
permutation->encrypt(buffer);
position = 0;