Skip to content

PKCS #11 support for HMAC with MD5, SHA, SHA-2 #2103

Merged
dgarske merged 4 commits intowolfSSL:masterfrom
SparkiDev:pkcs11_hmac
Feb 28, 2019
Merged

PKCS #11 support for HMAC with MD5, SHA, SHA-2 #2103
dgarske merged 4 commits intowolfSSL:masterfrom
SparkiDev:pkcs11_hmac

Conversation

@SparkiDev
Copy link
Contributor

No description provided.

@SparkiDev SparkiDev self-assigned this Feb 19, 2019
@SparkiDev SparkiDev force-pushed the pkcs11_hmac branch 2 times, most recently from b57ff51 to e4a0091 Compare February 20, 2019 00:21
@SparkiDev SparkiDev changed the title Support HMAC with MD5, SHA, SHA224, SHA256, SHA384 and SHA512 PKCS #11 support for HMAC with MD5, SHA, SHA-2 Feb 20, 2019
@dgarske dgarske assigned toddouska and unassigned SparkiDev Feb 22, 2019
@dgarske dgarske self-requested a review February 22, 2019 20:51
@SparkiDev SparkiDev force-pushed the pkcs11_hmac branch 2 times, most recently from 84e1b48 to 4ebff05 Compare February 25, 2019 01:47
src/internal.c Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ret is zero from AllocKey above, now we're ignoring RSA or ECC keys if they weren't build in but we are succeeding on return code? That doesn't make sense to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed that keyType couldn't be set to rsa_sa_algo unless !NO_RSA.
Changed to return NOT_COMPILED_IN in these cases.

@SparkiDev SparkiDev removed their assignment Feb 26, 2019
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sean. I tested this PR along with the tests in https://github.com/wolfSSL/wolfssl-examples/tree/master/pkcs11 and all looks good.

@dgarske dgarske merged commit b528997 into wolfSSL:master Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants