diff options
author | David Reid <dreid@dreid.org> | 2013-11-11 15:53:52 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-18 09:57:19 -0800 |
commit | 92ec09ec0b127b67b794c250aa4d32c063ab66aa (patch) | |
tree | fe2b423d0074284fd445bdaea8beb6662c52d231 | |
parent | d706515791ad42a527b39e899b89e4f669dff430 (diff) | |
download | cryptography-92ec09ec0b127b67b794c250aa4d32c063ab66aa.tar.gz cryptography-92ec09ec0b127b67b794c250aa4d32c063ab66aa.tar.bz2 cryptography-92ec09ec0b127b67b794c250aa4d32c063ab66aa.zip |
flesh out method definitions.
-rw-r--r-- | cryptography/hazmat/bindings/interfaces.py | 74 |
1 files changed, 65 insertions, 9 deletions
diff --git a/cryptography/hazmat/bindings/interfaces.py b/cryptography/hazmat/bindings/interfaces.py index e9c8fef3..43563d13 100644 --- a/cryptography/hazmat/bindings/interfaces.py +++ b/cryptography/hazmat/bindings/interfaces.py @@ -22,36 +22,92 @@ class CiphersProviderBackend(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def ciphers(self): """ + An instance of CiphersProvider """ class CiphersProvider(six.with_metaclass(abc.ABCMeta)): - """ - wat - """ + @abc.abstractmethod + def supported(self, cipher, mode): + """ + """ + + @abc.abstractmethod + def register_cipher_adapter(self, cipher, mode): + """ + """ + + @abc.abstractmethod + def create_encrypt_ctx(self, cipher, mode): + """ + """ + + @abc.abstractmethod + def create_decrypt_ctx(self, cipher, mode): + """ + """ class HashesProviderBackend(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def hashes(self): """ + An instance of HashesProvider """ class HashesProvider(six.with_metaclass(abc.ABCMeta)): - """ - wat - """ + @abc.abstractmethod + def supported(self, algorithm): + """ + """ + + @abc.abstractmethod + def create_ctx(self, algorithm): + """ + """ + + @abc.abstractmethod + def update_ctx(self, ctx, data): + """ + """ + + @abc.abstractmethod + def finalize_ctx(self, ctx, digest_size): + """ + """ + + @abc.abstractmethod + def copy_ctx(self, ctx): + """ + """ class HMACsProviderBackend(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def hmacs(self): """ + An instance of HMACsProvider """ class HMACsProvider(six.with_metaclass(abc.ABCMeta)): - """ - wat - """ + @abc.abstractmethod + def create_ctx(self, key, algorithm): + """ + """ + + @abc.abstractmethod + def update_ctx(self, ctx, data): + """ + """ + + @abc.abstractmethod + def finalize_ctx(self, ctx, digest_size): + """ + """ + + @abc.abstractmethod + def copy_ctx(self, ctx): + """ + """ |