aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-29 23:00:27 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-29 23:00:27 -0500
commitf59ad86676a3caceb8ab33d233d9361a9021916e (patch)
tree512a06d5f3ac18db2c33197e8068f79b916fcb51
parente055b27c73c9fec263212c384de514a2a934186e (diff)
downloadcryptography-f59ad86676a3caceb8ab33d233d9361a9021916e.tar.gz
cryptography-f59ad86676a3caceb8ab33d233d9361a9021916e.tar.bz2
cryptography-f59ad86676a3caceb8ab33d233d9361a9021916e.zip
remove unused methods
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 4e30e6f0..a0a7ac18 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -550,36 +550,6 @@ class Backend(object):
pem_password_cb
)
- def _rsa_cdata_from_private_key(self, private_key):
- ctx = self._lib.RSA_new()
- assert ctx != self._ffi.NULL
- ctx = self._ffi.gc(ctx, self._lib.RSA_free)
-
- ctx.p = self._int_to_bn(private_key.p)
- ctx.q = self._int_to_bn(private_key.q)
- ctx.d = self._int_to_bn(private_key.d)
- ctx.e = self._int_to_bn(private_key.e)
- ctx.n = self._int_to_bn(private_key.n)
- ctx.dmp1 = self._int_to_bn(private_key.dmp1)
- ctx.dmq1 = self._int_to_bn(private_key.dmq1)
- ctx.iqmp = self._int_to_bn(private_key.iqmp)
- res = self._lib.RSA_blinding_on(ctx, self._ffi.NULL)
- assert res == 1
-
- return ctx
-
- def _rsa_cdata_from_public_key(self, public_key):
- ctx = self._lib.RSA_new()
- assert ctx != self._ffi.NULL
- ctx = self._ffi.gc(ctx, self._lib.RSA_free)
-
- ctx.e = self._int_to_bn(public_key.e)
- ctx.n = self._int_to_bn(public_key.n)
- res = self._lib.RSA_blinding_on(ctx, self._ffi.NULL)
- assert res == 1
-
- return ctx
-
def _mgf1_hash_supported(self, algorithm):
if self._lib.Cryptography_HAS_MGF1_MD:
return self.hash_supported(algorithm)