Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-06-16 | Convert timing report to integrate with unittest.TextTestRunner, to avoid ↵ | Rob Austein | |
garbled reports if a test fails. | |||
2016-06-16 | Generalize and extend tests of externally-supplied RSA keys. | Rob Austein | |
Disable 3416-bit RSA key generation tests while we sort out whether simply padding the modulus out to the next 32-bit boundary is sufficient to support these with ModExpS6/ModExpA7. | |||
2016-06-16 | Completely farbled most of the super() incantations, sigh. | Rob Austein | |
2016-06-16 | Add timing of individual tests, test descriptions. | Rob Austein | |
2016-06-16 | Tweak unit tests to be a bit less annoying on Alpha. | Rob Austein | |
* Don't modify the wheel PIN unless specifically requested * Don't try to run the Novena RPC test server (or any server) by default. Still need to rewrite some of the RSA key tests, particularly the external key load test, to conform to known implementation constraint that key length must be a multiple of 32 bits; deferred until we switch back to hardware modexp, as this won't matter until then. | |||
2016-06-14 | Clean up debugging output left in one of the unit tests. | Rob Austein | |
2016-06-13 | Add test for loading an externally generated keypair via C_CreateObject(). | Rob Austein | |
2016-06-12 | A few RSA unit tests inspired by hsmbully. | Rob Austein | |
2016-06-10 | Support split keypairs, where private key is a token object and public | Rob Austein | |
key is a session object. Doesn't actually save us anything, but Jakob tells us that this makes a difference on some HSMs so we people use this kind of setup and we need to support it. Explicitly disallow private keys as session objects, since we have no way to protect them. Update unit-tests now that we return the correct error code for this case. | |||
2016-06-10 | Add support for running only a specified subset of the unit tests. | Rob Austein | |
2016-06-10 | Update unit tests to match new behavior: we no longer allow private | Rob Austein | |
keys to be stored as session objects, so test that doing so fails as expected, and update other tests to specify CKA_TOKEN = True. | |||
2016-05-25 | Track PIN changes on libhal master branch. | Rob Austein | |
2016-05-19 | Add test case using public key via C_CreateObject() to verify signature ↵ | Rob Austein | |
created by earlier keypair. | |||
2016-05-18 | Add explicit generate/sign/verify unit tests both on and off the | Rob Austein | |
token, since we just demonstrated (the hard way) that testing only one is not sufficient. | |||
2016-05-17 | Bugfixes to new error handling code, refactor some unreadable nested logic ↵ | Rob Austein | |
in handle lookup code. The mapping between PKCS #11 objects and libhal handles isn't quite right yet. This is a snapshot of bugfixes accumulated along the way, before refactoring mapping code to deal with the underlying problem. | |||
2016-05-16 | Identical CKA_ID values no longer constitute a conflict, adjust test. | Rob Austein | |
2016-05-15 | Fix broken unit test. | Rob Austein | |
Turns out that the one remaining old PKCS #11 unit test we weren't passing was a broken test: code was correctly rejecting CKA_ID conflicts. Rewrote test, and added test setup code to use separate client and server keystores when using the ks_mmap keystore driver. | |||
2016-05-13 | Sort out some disagreements between our command line parsing and unit_test's ↵ | Rob Austein | |
defaults. | |||
2016-05-13 | Rework unit_test framework to use argparse and to run RPC server ↵ | Rob Austein | |
automatically if present. | |||
2015-09-22 | Clean up Python APIs to C_FindObject*() and C_GetSlotList(). | Rob Austein | |
2015-09-21 | Better test for keypair object class. | Rob Austein | |
2015-09-21 | More key unit tests. | Rob Austein | |
2015-09-21 | More test cases. | Rob Austein | |
2015-09-21 | Unit tests for init, session, and login functions. | Rob Austein | |
2015-09-21 | First step towards unit tests. | Rob Austein | |