Commit graph

5 commits

Author SHA1 Message Date
Andrzej Kurek 33f566541c PKCS11: Parametrize buffers
Change magic numbers to more descriptive names
2018-02-19 04:03:11 -05:00
Andrzej Kurek cc6294c12e Opaque keys tests - remove private key access during verification
Removing private key from pkcs11 context for verification tests
2018-01-25 02:43:24 -05:00
Andrzej Kurek b03bc43f22 pkcs11_client tests - hardcoded signature verification
Add review fixes - naming changes, importing a signature instead of
generating it.
2018-01-23 06:25:32 -05:00
Andrzej Kurek c289bf1a30 Add ECDSA verify
Add tests for external verification when signing is done both internally and externally
2018-01-23 06:10:53 -05:00
Andrzej Kurek c53dee302d New module: pkcs11_client
New module pkcs11_client.c, defining an opaque pk engine whose backend
is a PKCS#11 token (cryptographic module using the Cryptoki API).

New config option PKCS11_CLIENT_C. Requires pkcs11.h to compile and a
pkcs11 library to link.

Test setup meant to be used with the SoftHSM v2 library (libsofthsm2).
The test setup is not yet integrated with the Mbed TLS test framework.
Before running tests involving PKCS#11, you need to run

    cd tests && scripts/pkcs11-client-test.sh init
2018-01-23 05:44:20 -05:00