The script loads synthethic RSA, AES and SYM keys in a CCA
    card.

    Warning: This *will* replace you card keys with insecure
    version only aimed for testing!

    Do NOT use those keys for production purposes.

Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
 testcases/init_cca.sh |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100755 testcases/init_cca.sh

diff --git a/testcases/init_cca.sh b/testcases/init_cca.sh
new file mode 100755
index 0000000..471db7c
--- /dev/null
+++ b/testcases/init_cca.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+for j in S A E; do
+       echo "---"
+       echo "CLEARING 'NEW' register for key type '$j'"
+       panel.exe -c -t $j
+       echo "Exit value was '$?'"
+       for i in F M L; do
+               echo "  LOADING key type '$j', key part '$i'"
+               if [ "$j" = "E" ]; then
+                       panel.exe -l -t $j -p $i 
0202020202020202020202020202020202020202020202020202020202020202
+               else
+                       panel.exe -l -t $j -p $i 
020202020202020202020202020202020202020202020202
+               fi
+               echo "  Exit value was '$?'"
+       done
+       echo "SETTING new key"
+       panel.exe -s -t $j
+       echo "Exit value was '$?'"
+done
-- 
1.7.2.3


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to