From bcca9c5b71e28f08787e2b130380e99f1c728245 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 7 Apr 2018 14:00:57 -0400 Subject: Update docs [ci skip] --- doc/manual/cipher_modes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 key = Botan::hex_decode("2B7E151628AED2A6ABF7158809CF4F3C"); - std::unique_ptr enc(Botan::get_cipher_mode("AES-128/CBC/PKCS7", Botan::ENCRYPTION)); + std::unique_ptr enc = Botan::Cipher_Mode::create("AES-128/CBC/PKCS7", Botan::ENCRYPTION); enc->set_key(key); Botan::secure_vector pt(plaintext.data(), plaintext.data()+plaintext.length()); -- cgit v1.2.3