summaryrefslogtreecommitdiff
path: root/rsa/key.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/key.py')
-rw-r--r--rsa/key.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/rsa/key.py b/rsa/key.py
index fa195eb..37e26b0 100644
--- a/rsa/key.py
+++ b/rsa/key.py
@@ -491,19 +491,6 @@ class PrivateKey(AbstractKey):
return self.unblind(decrypted, blindfac_inverse)
- def blinded_encrypt(self, message: int) -> int:
- """Encrypts the message using blinding to prevent side-channel attacks.
-
- :param message: the message to encrypt
- :type message: int
-
- :returns: the encrypted message
- :rtype: int
- """
-
- blinded, blindfac_inverse = self.blind(message)
- encrypted = rsa.core.encrypt_int(blinded, self.d, self.n)
- return self.unblind(encrypted, blindfac_inverse)
@classmethod
def _load_pkcs1_der(cls, keyfile: bytes) -> "PrivateKey":