summaryrefslogtreecommitdiff
path: root/rsa/key.py
diff options
context:
space:
mode:
authormyheroyuki <myheroyuki@outlook.com>2022-10-27 22:50:42 +0900
committerSybren A. Stüvel <sybren@stuvel.eu>2023-04-25 16:03:00 +0200
commit771a0b06f910a1cf84951d596040d2e1e6d8a00d (patch)
treece04958479e658f6b4af4cec8399edd42662983a /rsa/key.py
parentc0d867079dff6a3e15d13967c05d0f4cf2de11c5 (diff)
downloadrsa-git-main.tar.gz
language correction and speed-upHEADmain
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":