Searched refs:save_pkcs1 (Results 1 – 7 of 7) sorted by relevance
79 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)80 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)84 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)85 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)93 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)94 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)98 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)99 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)
121 der = key.save_pkcs1('DER')138 der = key.save_pkcs1('DER')162 pem = key.save_pkcs1('PEM')179 pem = key.save_pkcs1('PEM')
90 outfile.write(cls.pub_key.save_pkcs1())93 outfile.write(cls.priv_key.save_pkcs1())
65 out_data = pub_key.save_pkcs1(cli.outform)
72 data = pub_key.save_pkcs1(format=cli.form)77 data = priv_key.save_pkcs1(format=cli.form)
134 def save_pkcs1(self, format: str = 'PEM') -> bytes: member in AbstractKey
82 - Ensured that PublicKey.save_pkcs1() and PrivateKey.save_pkcs1() always return bytes.