Thanks for maintaining this out of optee tree, so we can use it existing optee implementation.
I'm trying to use this in order to store and perfom operation on a ec prime256v1 key. I manage to create the key but not to use it. Am I doing something wrong ?
# pkcs11-tool --module /usr/lib/libsks.so.0.0 --login --pin 12345678 --keypairgen --key-type EC:prime256v1 --label testkey --id 02
Using slot 0 with a present token (0x0)
Key pair generated:
Private Key Object; EC
label: testkey
ID: 02
Usage: sign, derive
Public Key Object; EC EC_POINT 256 bits
EC_POINT: 044104021d05e8aa992c1106c4bb55bd5ac786a50c957109c0815cc6f5e05a870b2011eceb38bfb243b16e09519a3bf888096b16f8e7cc264383e94c736d611d634f95
EC_PARAMS: 06082a8648ce3d030107
label: testkey
ID: 02
Usage: verify, derive
# dd if=/dev/random of=32bytes count=32 bs=1
# pkcs11-tool --module /usr/lib/libsks.so.0.0 --login --pin 12345678 --sign -m ECDSA --id 02 --input-file 32bytes --output-file sign.out
Using slot 0 with a present token (0x0)
error: Private key not found
Aborting.