Пример #1
0
 def public_decrypt(self, data, padding):
     # type: (bytes, int) -> bytes
     assert self.check_key(), 'key is not initialised'
     return m2.rsa_public_decrypt(self.rsa, data, padding)
Пример #2
0
 def public_decrypt(self, data, padding):
     assert self.check_key(), 'key is not initialised'
     return m2.rsa_public_decrypt(self.rsa, data, padding)
Пример #3
0
 def public_decrypt(self, data, padding):
     assert self.check_key(), 'key is not initialised'
     return m2.rsa_public_decrypt(self.rsa, data, padding)
Пример #4
0
 def _public_crypt(self, c):
     s = num_to_bytes(c, self.n_bytes)
     m = bytes_to_num(m2.rsa_public_decrypt(self.rsa, s, m2.no_padding))
     return m
Пример #5
0
 def public_decrypt(self, data, padding):
     # type: (bytes, int) -> bytes
     assert self.check_key(), 'key is not initialised'
     return m2.rsa_public_decrypt(self.rsa, data, padding)