aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-04-07 14:00:57 -0400
committerJack Lloyd <[email protected]>2018-04-07 14:00:57 -0400
commitbcca9c5b71e28f08787e2b130380e99f1c728245 (patch)
tree0a3640fb0482505a84d422ab05d057622cfeaae9
parent3657639abf776e78b35a961d646dd410a7fce492 (diff)
Update docs [ci skip]
-rw-r--r--doc/manual/cipher_modes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/cipher_modes.rst b/doc/manual/cipher_modes.rst
index ffd36a218..ca53a6ab5 100644
--- a/doc/manual/cipher_modes.rst
+++ b/doc/manual/cipher_modes.rst
@@ -95,7 +95,7 @@ with PKCS#7 padding.
const std::string plaintext("Your great-grandfather gave this watch to your granddad for good luck. Unfortunately, Dane's luck wasn't as good as his old man's.");
const std::vector<uint8_t> key = Botan::hex_decode("2B7E151628AED2A6ABF7158809CF4F3C");
- std::unique_ptr<Botan::Cipher_Mode> enc(Botan::get_cipher_mode("AES-128/CBC/PKCS7", Botan::ENCRYPTION));
+ std::unique_ptr<Botan::Cipher_Mode> enc = Botan::Cipher_Mode::create("AES-128/CBC/PKCS7", Botan::ENCRYPTION);
enc->set_key(key);
Botan::secure_vector<uint8_t> pt(plaintext.data(), plaintext.data()+plaintext.length());