Skip to content

PKCS #11: implement identifying keys by label #3416

Closed
SparkiDev wants to merge 5 commits intowolfSSL:masterfrom
SparkiDev:pkcs11_label
Closed

PKCS #11: implement identifying keys by label #3416
SparkiDev wants to merge 5 commits intowolfSSL:masterfrom
SparkiDev:pkcs11_label

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

No description provided.

@SparkiDev SparkiDev self-assigned this Oct 23, 2020
@SparkiDev SparkiDev force-pushed the pkcs11_label branch 4 times, most recently from 80505b9 to 013dba2 Compare November 3, 2020 07:23
Check private key matches the public key passed in.
Need to use a new API to pass in the token to use to perform PKCS wolfSSL#11
operations with.
Comment thread src/internal.c Outdated
*pkey = (void*)rsaKey;
}
else {
XFREE(rsaKey, heap, DYNAMIC_TYPE_EC);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't this be DYNAMIC_TYPE_RSA?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

Comment thread src/internal.c Outdated
*pkey = (void*)ecKey;
}
else {
XFREE(ecKey, heap, DYNAMIC_TYPE_EC);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

DYNAMIC_TYPE_ECC?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

…gn for RSA

Was opening and closing sessions when operations not compiled in were
being attempted (e.g. hashing during certificate signing).
C_Sign can be used with X509 RSA (raw) as it does the same operations as
C_Decrypt. Use the function matching hig level operation where
supported.
Make debugging functions take a CK_ULONG rather than an int - to avoid
casting.
@SparkiDev
Copy link
Copy Markdown
Contributor Author

New branch on which these changes have been applied to current master:
#3523

This pull request closed and maintained for customer. They are using 4.3.0 so differences doesn't apply easily.

@SparkiDev SparkiDev closed this Nov 26, 2020
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.

2 participants