summaryrefslogtreecommitdiff
path: root/src/block_template.c
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 10:55:06 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 18:32:04 -0700
commitb6ad2b47d9b7f3799c29097b4324dff2540fe77d (patch)
treeadd26f4b539dadecb45f21e265f04c827db195db /src/block_template.c
parent0ee73a1b571f540cfca8d656853f2bc3df2e3767 (diff)
downloadpycrypto-b6ad2b47d9b7f3799c29097b4324dff2540fe77d.tar.gz
Counter: Deprecate disable_shortcut; Remove __PCT_CTR_SHORTCUT__ entirely
The `disable_shortcut` option served as a workaround in case `__PCT_CTR_SHORTCUT__` leaked through a wrapper object, but I don't think anyone actually used it, and it was a bad idea to expose it as part of the public API. Now that we do strong type checking inside block_template.c, there shoujld be no need to ever use this option. It's now a no-op, retained for backward compatibility only. It will be removed in some future version of PyCrypto.
Diffstat (limited to 'src/block_template.c')
-rw-r--r--src/block_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/block_template.c b/src/block_template.c
index 3e19eca..c655509 100644
--- a/src/block_template.c
+++ b/src/block_template.c
@@ -801,6 +801,7 @@ _MODULE_NAME (void)
PyModule_AddIntConstant(m, "block_size", BLOCK_SIZE);
PyModule_AddIntConstant(m, "key_size", KEY_SIZE);
+ /* Import CounterBE and CounterLE from the _counter module */
Py_CLEAR(_counter_module);
_counter_module = PyImport_ImportModule("Crypto.Util._counter");
if (_counter_module) {