From 25a689dbc000ed64bb0d67b0747c9c5bae2936bd Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 17 Feb 2014 19:19:14 -0600 Subject: add sign/verify ctx creation methods to RSABackend interface --- cryptography/hazmat/backends/interfaces.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cryptography/hazmat/backends/interfaces.py b/cryptography/hazmat/backends/interfaces.py index b867f26a..73f861a4 100644 --- a/cryptography/hazmat/backends/interfaces.py +++ b/cryptography/hazmat/backends/interfaces.py @@ -90,3 +90,15 @@ class RSABackend(six.with_metaclass(abc.ABCMeta)): Generate an RSAPrivateKey instance with public_exponent and a modulus of key_size bits. """ + + @abc.abstractmethod + def create_rsa_sign_ctx(self, private_key, padding, algorithm): + """ + Returns an object conforming to the AsymmetricSignContext interface. + """ + + @abc.abstractmethod + def create_rsa_verify_ctx(self, public_key, signature, padding, algorithm): + """ + Returns an object conforming to the AsymmetricVerifyContext interface. + """ -- cgit v1.2.3