diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-09-29 14:48:19 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-10-20 13:30:22 -0700 |
commit | 3e706bfc6a65efe71ea592decda651e5fd452b70 (patch) | |
tree | 0d516cef9a68c6f5e84022a06c296fd56ff9bbe7 /lib/Crypto | |
parent | 2062e5f843fa54d9da45e5d53652f3fb5dbbd97e (diff) | |
download | pycrypto-3e706bfc6a65efe71ea592decda651e5fd452b70.tar.gz |
_CBCMAC: Rename ignite() -> _ignite()
I don't want to make this a public API just yet.
Diffstat (limited to 'lib/Crypto')
-rw-r--r-- | lib/Crypto/Cipher/blockalgo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Crypto/Cipher/blockalgo.py b/lib/Crypto/Cipher/blockalgo.py index 2864f6b..f065749 100644 --- a/lib/Crypto/Cipher/blockalgo.py +++ b/lib/Crypto/Cipher/blockalgo.py @@ -301,9 +301,9 @@ class _CBCMAC(_SmoothMAC): self._key = key self._factory = ciphermod - def ignite(self, data): + def _ignite(self, data): if self._mac: - raise TypeError("ignite() cannot be called twice") + raise TypeError("_ignite() cannot be called twice") self._buffer.insert(0, data) self._buffer_len += len(data) @@ -606,7 +606,7 @@ class BlockAlgo: assoc_len_encoded = b('\xFF\xFF') enc_size = 8 assoc_len_encoded += long_to_bytes(self._assoc_len, enc_size) - self._cipherMAC.ignite(b_0 + assoc_len_encoded) + self._cipherMAC._ignite(b_0 + assoc_len_encoded) # Start CTR cipher prefix = bchr(q - 1) + self.nonce |