Initial commit

This commit is contained in:
Arnaud Fontaine
2016-10-21 14:56:47 +02:00
commit 6635448be6
28 changed files with 10334 additions and 0 deletions

12
bin/example-set-mixed-crypto.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python
from smartpgp.highlevel import *
ctx = CardConnectionContext()
ctx.connect()
ctx.verify_admin_pin()
ctx.cmd_switch_crypto("P-521","auth")
ctx.cmd_switch_crypto("RSA","dec")
ctx.cmd_switch_crypto("brainpoolP512r1","sig")