diff options
author | Terry Chia <terrycwk1994@gmail.com> | 2014-10-20 10:34:02 +0800 |
---|---|---|
committer | Terry Chia <terrycwk1994@gmail.com> | 2014-10-20 22:58:48 +0800 |
commit | 73cb687bcf87fbb7d392c998bd3ad619b58fa6b0 (patch) | |
tree | d3b72df5e5e266eae98376043fa25291c41351da | |
parent | 0fc591f609004de9b531fdd165ffa0b99c58d7c5 (diff) | |
download | cryptography-73cb687bcf87fbb7d392c998bd3ad619b58fa6b0.tar.gz cryptography-73cb687bcf87fbb7d392c998bd3ad619b58fa6b0.tar.bz2 cryptography-73cb687bcf87fbb7d392c998bd3ad619b58fa6b0.zip |
Remove algorithm property from MACContext and alias CMACContext.
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index dde0a3b6..c09a9618 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -391,27 +391,6 @@ class KeyDerivationFunction(object): @six.add_metaclass(abc.ABCMeta) -class CMACContext(object): - @abc.abstractmethod - def update(self, data): - """ - Processes the provided bytes. - """ - - @abc.abstractmethod - def finalize(self): - """ - Returns the message authentication code as bytes. - """ - - @abc.abstractmethod - def copy(self): - """ - Return a CMACContext that is a copy of the current context. - """ - - -@six.add_metaclass(abc.ABCMeta) class EllipticCurve(object): @abc.abstractproperty def name(self): @@ -491,12 +470,6 @@ class EllipticCurvePublicKeyWithNumbers(EllipticCurvePublicKey): @six.add_metaclass(abc.ABCMeta) class MACContext(object): - @abc.abstractproperty - def algorithm(self): - """ - The algorithm that will be used by this context. - """ - @abc.abstractmethod def update(self, data): """ @@ -521,3 +494,5 @@ class MACContext(object): Checks if the generated message authentication code matches the signature. """ + +CMACContext = MACContext |