Exemplo n.º 1
0
 def _launch_rsa_psi_signer(self):
     self._rsa_psi_signer_addr = 'localhost:6171'
     rsa_private_key_pem = None
     with gfile.GFile(self._rsa_private_key_path, 'rb') as f:
         rsa_private_key_pem = f.read()
     rsa_private_key = rsa.PrivateKey.load_pkcs1(rsa_private_key_pem)
     self._rsa_psi_signer = rsa_psi_signer.RsaPsiSigner(rsa_private_key, 1)
     self._rsa_psi_signer.start(int(
         self._rsa_psi_signer_addr.split(':')[1]))
Exemplo n.º 2
0
 def _launch_rsa_psi_signer(self):
     self._rsa_psi_signer_addr = 'localhost:6171'
     self._rsa_psi_signer = rsa_psi_signer.RsaPsiSigner(
         self._rsa_private_key_path, 1)
     self._rsa_psi_signer.start(int(
         self._rsa_psi_signer_addr.split(':')[1]))