From 989061d070bdee122b07633e9a19e737fa816256 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 13 Dec 2013 20:22:14 -0800 Subject: Prefer executable code examples --- docs/hazmat/primitives/symmetric-encryption.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst index ef6f0871..f3def845 100644 --- a/docs/hazmat/primitives/symmetric-encryption.rst +++ b/docs/hazmat/primitives/symmetric-encryption.rst @@ -266,7 +266,7 @@ Modes A good construction looks like: - .. code-block:: pycon + .. doctest:: >>> import os >>> iv = os.urandom(16) @@ -274,7 +274,7 @@ Modes While the following is bad and will leak information: - .. code-block:: pycon + .. doctest:: >>> iv = "a" * 16 >>> mode = CBC(iv) -- cgit v1.2.3