aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-14 15:22:25 -0400
committerRob Austein <sra@hactrn.net>2017-04-14 15:22:25 -0400
commitce8ba928172071dc89cc1fc0520f840211bbfa0d (patch)
treeae1279914e28ff889565b1fd36d803bd9ac0d66e /scripts
parent81ae5e07be01c0aacc332eb82db2f0ff452ced3d (diff)
Python interface API will need to be cryptech.py11 for installation.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/py11-test.py4
-rwxr-xr-xscripts/time-signature.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/py11-test.py b/scripts/py11-test.py
index 04372ec..87af29d 100644
--- a/scripts/py11-test.py
+++ b/scripts/py11-test.py
@@ -1,7 +1,7 @@
# Initial test script using py11. About 2/3 testing PKCS #11, 1/3
# doodles figuring out what else py11 should be automating for us.
-from py11 import *
+from cryptech.py11 import *
from struct import pack, unpack
def show_token(i, t, strip = True):
@@ -77,7 +77,7 @@ elif False:
else:
print "Using our own pseudo-MUTEXes"
- from py11.mutex import MutexDB
+ from cryptech.py11.mutex import MutexDB
mdb = MutexDB()
p11.C_Initialize(0, mdb.create, mdb.destroy, mdb.lock, mdb.unlock)
diff --git a/scripts/time-signature.py b/scripts/time-signature.py
index eef646d..99ec718 100755
--- a/scripts/time-signature.py
+++ b/scripts/time-signature.py
@@ -15,12 +15,12 @@ from Crypto.Hash.SHA384 import SHA384Hash as SHA384
from Crypto.Hash.SHA512 import SHA512Hash as SHA512
try:
- from py11 import *
+ from cryptech.py11 import *
except ImportError:
- # Kludge to let us run script from repo without installing py11
+ # Kludge to let us run script from repo without installing cryptech.py11
from os.path import dirname, abspath
sys.path.append(dirname(dirname(abspath(sys.argv[0]))))
- from py11 import *
+ from cryptech.py11 import *
if platform.system() == "Darwin":