shpedoikal/opencryptoki — pull request #10 by shpedoikal (2011-12-07 21:04:37+00:00)
Title: Add a Java-based sign and verify testcase.

This patch adds a java testcase to the testsuite under testcases/java. Its been integrated into the auotmated testsuite script, which might raise some questions, since running the automated tests will require an IBM JVM from here on out.

The test itself iterates through key sizes and for each one, it generates a key using the Java JCE, signs with it, and then verifies using the PKCS11 provider, which is directed to an opencryptoki token. Also included in this patch is a script that queries the token being tested to find out which signing mechanisms it supports. Note that this test doesn't work with secure-key tokens.

Signed-off-by: Kent Yoder