diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/new_engine.cpp | 2 | ||||
-rw-r--r-- | doc/examples/rng_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/new_engine.cpp b/doc/examples/new_engine.cpp index 2f412a6b9..6c7bc340a 100644 --- a/doc/examples/new_engine.cpp +++ b/doc/examples/new_engine.cpp @@ -13,7 +13,7 @@ using namespace Botan; class XOR_Cipher : public StreamCipher { public: - void clear() throw() { mask.destroy(); mask_pos = 0; } + void clear() throw() { mask.clear(); mask_pos = 0; } // what we want to call this cipher std::string name() const { return "XOR"; } diff --git a/doc/examples/rng_test.cpp b/doc/examples/rng_test.cpp index 3d96b7a42..f630d1c5a 100644 --- a/doc/examples/rng_test.cpp +++ b/doc/examples/rng_test.cpp @@ -29,7 +29,7 @@ SecureVector<byte> decode_hex(const std::string& in) } catch(std::exception& e) { - result.destroy(); + result.clear(); } return result; } |