diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-06-21 10:12:16 +0100 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-06-21 10:12:16 +0100 |
commit | b455df17588d0cb99bf03f3aed945fedb91b444c (patch) | |
tree | a06f15b2773c19fd28f2d291600cf69ac312c7fd | |
parent | 7894daa9a9bd42cd14f1ba72026e054b7ca3a000 (diff) | |
parent | ed5a12429ee9683384631d063818e9859a5a28a8 (diff) | |
download | cryptography-b455df17588d0cb99bf03f3aed945fedb91b444c.tar.gz cryptography-b455df17588d0cb99bf03f3aed945fedb91b444c.tar.bz2 cryptography-b455df17588d0cb99bf03f3aed945fedb91b444c.zip |
Merge pull request #1153 from reaperhulk/add-missing-interface-methods
add missing interface methods on ABCs
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 54821dbd..71852562 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -191,6 +191,12 @@ class RSAPrivateKey(object): Returns an AsymmetricSignatureContext used for signing data. """ + @abc.abstractmethod + def decrypt(self, ciphertext, padding): + """ + Decrypts the provided ciphertext. + """ + @abc.abstractproperty def key_size(self): """ @@ -220,6 +226,12 @@ class RSAPublicKey(object): Returns an AsymmetricVerificationContext used for verifying signatures. """ + @abc.abstractmethod + def encrypt(self, plaintext, padding): + """ + Encrypts the given plaintext. + """ + @abc.abstractproperty def key_size(self): """ |