From d30c444305b4fcde74fb39b065a9f716540f9592 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Dec 2008 20:18:26 +0000 Subject: Hook in the RSA mechanism to the PKCS#11 calls. --- ckcapi-rsa.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ckcapi-rsa.c') diff --git a/ckcapi-rsa.c b/ckcapi-rsa.c index 0d4e75d..122ac53 100644 --- a/ckcapi-rsa.c +++ b/ckcapi-rsa.c @@ -403,3 +403,14 @@ ckcapi_rsa_pkcs_decrypt_cleanup(void* operation) { /* Nothing to do */ } + +void +ckcapi_rsa_pkcs_get_info (CK_MECHANISM_TYPE mech, CK_MECHANISM_INFO_PTR info) +{ + ASSERT(mech == CKM_RSA_PKCS); + ASSERT(info != NULL); + + info->ulMinKeySize = 384; + info->ulMaxKeySize = 16384; + info->flags = 0; +} -- cgit v1.2.3