It looks like the soft token is reporting that it does SHA256 in its mechanism list, although its not implemented in the code. A patch to fix that follows.
Also I noticed that all the soft token mechanisms report that they're implemented in hardware by returning the CKF_HW flag in their mechanism info flags. I can also submit a patch to correct that as well... Thanks, Kent Signed-off-by: Kent Yoder <[email protected]> diff --git a/usr/lib/pkcs11/soft_stdll/soft_specific.c b/usr/lib/pkcs11/soft_stdll/soft_specific.c index 1bf47c4..c9eecb6 100644 --- a/usr/lib/pkcs11/soft_stdll/soft_specific.c +++ b/usr/lib/pkcs11/soft_stdll/soft_specific.c @@ -1541,6 +1541,8 @@ MECH_LIST_ELEMENT mech_list[] = { { CKM_SHA_1, {0, 0, CKF_HW | CKF_DIGEST} }, { CKM_SHA_1_HMAC, {0, 0, CKF_HW | CKF_SIGN | CKF_VERIFY} }, { CKM_SHA_1_HMAC_GENERAL, {0, 0, CKF_HW | CKF_SIGN | CKF_VERIFY} }, +#endif +#if 0 { CKM_SHA256, {0, 0, CKF_HW | CKF_DIGEST} }, { CKM_SHA256_HMAC, {0, 0, CKF_HW | CKF_SIGN | CKF_VERIFY} }, { CKM_SHA256_HMAC_GENERAL, {0, 0, CKF_HW | CKF_SIGN | CKF_VERIFY} }, ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Opencryptoki-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech
