pkcs11-tool: implement 'find mechanism from the given list'

and use it when testing signature
This commit is contained in:
Viktor Tarasov 2012-08-12 21:19:57 +02:00
parent dc927fbe3c
commit 8e8acf1ff6
1 changed files with 1 additions and 0 deletions

View File

@ -3304,6 +3304,7 @@ static int test_signature(CK_SESSION_HANDLE sess)
CKM_SHA1_RSA_PKCS,
CKM_MD5_RSA_PKCS,
CKM_RIPEMD160_RSA_PKCS,
CKM_SHA256_RSA_PKCS,
0xffffff
};
size_t mechTypes_num = sizeof(mechTypes)/sizeof(CK_MECHANISM_TYPE);