diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-08 20:18:26 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-08 20:18:26 +0000 |
commit | d30c444305b4fcde74fb39b065a9f716540f9592 (patch) | |
tree | add3e541a4d0bdae23529bf2829bff3eb34870a4 /ckcapi-rsa.c | |
parent | 4fed7df158749db0126e7de6d632f2f03dcfb5de (diff) |
Hook in the RSA mechanism to the PKCS#11 calls.
Diffstat (limited to 'ckcapi-rsa.c')
-rw-r--r-- | ckcapi-rsa.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; +} |