Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dp(self):
return _int_to_bytes(self._private_key_material().dmp1) if self.is_private_key() else None
def dq(self):
return _int_to_bytes(self._private_key_material().dmq1) if self.is_private_key() else None
def e(self):
return _int_to_bytes(self._public_key_material().e)
def qi(self):
return _int_to_bytes(self._private_key_material().iqmp) if self.is_private_key() else None
def q(self):
return _int_to_bytes(self._private_key_material().q) if self.is_private_key() else None
def b(self):
return _int_to_bytes(self._private_key_material().b) if self.is_private_key() else None
def d(self):
return _int_to_bytes(self._private_key_material().d) if self.is_private_key() else None
def n(self):
return _int_to_bytes(self._public_key_material().n)