summaryrefslogtreecommitdiff
path: root/lib/Crypto/Cipher/blockalgo.py
diff options
context:
space:
mode:
authorLegrandin <helderijs@gmail.com>2014-04-26 09:10:19 +0200
committerDwayne Litzenberger <dlitz@dlitz.net>2014-06-22 23:47:53 -0700
commit9e2b6af8c34efba80d141490b48b82a3c2185ae5 (patch)
tree937e96e8b2d1f229b1b152f87b2db977e2776510 /lib/Crypto/Cipher/blockalgo.py
parentfc266f4ae9138022df4808e19c579c8a5c60f24b (diff)
downloadpycrypto-9e2b6af8c34efba80d141490b48b82a3c2185ae5.tar.gz
Make Cipher.galois module private
Diffstat (limited to 'lib/Crypto/Cipher/blockalgo.py')
-rw-r--r--lib/Crypto/Cipher/blockalgo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Crypto/Cipher/blockalgo.py b/lib/Crypto/Cipher/blockalgo.py
index db45404..002726c 100644
--- a/lib/Crypto/Cipher/blockalgo.py
+++ b/lib/Crypto/Cipher/blockalgo.py
@@ -37,7 +37,7 @@ from Crypto.Hash import CMAC
from Crypto.Hash.CMAC import _SmoothMAC
from Crypto.Protocol.KDF import _S2V
-from Crypto.Util import galois
+from Crypto.Util import _galois
#: *Electronic Code Book (ECB)*.
#: This is the simplest encryption mode. Each of the plaintext blocks
@@ -331,9 +331,9 @@ class _GHASH(_SmoothMAC):
def __init__(self, hash_subkey, block_size):
_SmoothMAC.__init__(self, block_size, None, 0)
- self._hash_subkey = galois._ghash_expand(hash_subkey)
+ self._hash_subkey = _galois.ghash_expand(hash_subkey)
self._last_y = bchr(0) * 16
- self._mac = galois._ghash
+ self._mac = _galois.ghash
def copy(self):
clone = _GHASH(self._hash_subkey, self._bs)
@@ -342,7 +342,7 @@ class _GHASH(_SmoothMAC):
return clone
def _update(self, block_data):
- self._last_y = galois._ghash(block_data, self._last_y,
+ self._last_y = _galois.ghash(block_data, self._last_y,
self._hash_subkey)
def _digest(self, left_data):