Ejemplo n.º 1
0
 def test_keygen_3(self, card, ECDSAcurve):
     pk = card.cmd_genkey(3)
     fpr_date = ecdsa_keys.calc_fpr_ecdsa(pk[0])
     r = card.cmd_put_data(0x00, 0xc7, fpr_date[0])
     if r:
         r = card.cmd_put_data(0x00, 0xce, fpr_date[1])
     assert r
Ejemplo n.º 2
0
 def test_keygen_3(self, card):
     pk = card.cmd_genkey(3)
     assert Ed25519CheckPublicKey(pk[0])
     fpr_date = ecdsa_keys.calc_fpr_ecdsa(pk[0])
     r = card.cmd_put_data(0x00, 0xc9, fpr_date[0])
     if r:
         r = card.cmd_put_data(0x00, 0xd0, fpr_date[1])
     assert r
Ejemplo n.º 3
0
 def test_keygen_2(self, card, ECDSAcurve):
     pk = card.cmd_genkey(2)
     assert ECDSACheckPublicKey(ECDSAcurve, pk[0])
     fpr_date = ecdsa_keys.calc_fpr_ecdsa(pk[0])
     r = card.cmd_put_data(0x00, 0xc8, fpr_date[0])
     if r:
         r = card.cmd_put_data(0x00, 0xcf, fpr_date[1])
     assert r