diff options
-rw-r--r-- | doc/examples/new_engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/new_engine.cpp b/doc/examples/new_engine.cpp index 4a2339bef..42e5dbe33 100644 --- a/doc/examples/new_engine.cpp +++ b/doc/examples/new_engine.cpp @@ -39,7 +39,8 @@ class XOR_Cipher : public StreamCipher void key_schedule(const byte key[], size_t length) { - mask.set(key, length); + mask.resize(length); + copy_mem(&mask[0], key, length); } SecureVector<byte> mask; |