aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-12 07:27:57 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-12 07:27:57 -0400
commit68a4f565d341412f8d74f7563ab9a1a63d9aa071 (patch)
treee0eb4396c0975dd3d65039146497edafd9db60cf
parent0b4df977c1427034760c5237a337f245d021d142 (diff)
downloadcryptography-68a4f565d341412f8d74f7563ab9a1a63d9aa071.tar.gz
cryptography-68a4f565d341412f8d74f7563ab9a1a63d9aa071.tar.bz2
cryptography-68a4f565d341412f8d74f7563ab9a1a63d9aa071.zip
Moved comment to the right place, use integer enums
-rw-r--r--cryptography/primitives/block/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py
index f4a04b35..b4137fd4 100644
--- a/cryptography/primitives/block/base.py
+++ b/cryptography/primitives/block/base.py
@@ -13,15 +13,15 @@
from __future__ import absolute_import, division, print_function
-# TODO: which binding is used should be an option somewhere
from enum import Enum
+# TODO: which binding is used should be an option somewhere
from cryptography.bindings.openssl import api
class _Operation(Enum):
- encrypt = "encrypt"
- decrypt = "decrypt"
+ encrypt = 0
+ decrypt = 1
class BlockCipher(object):