Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKCS11 TPM support #23

Merged
merged 5 commits into from Dec 5, 2023
Merged

PKCS11 TPM support #23

merged 5 commits into from Dec 5, 2023

Conversation

dgarske
Copy link
Collaborator

@dgarske dgarske commented Nov 13, 2023

@dgarske dgarske self-assigned this Nov 13, 2023
@dgarske dgarske changed the title PKCS11 TPM support (RSA only) PKCS11 TPM support Nov 13, 2023
@dgarske dgarske force-pushed the pkcs11_tpm branch 5 times, most recently from 643dd33 to 8a2eae2 Compare November 14, 2023 16:21
@dgarske dgarske force-pushed the pkcs11_tpm branch 2 times, most recently from 1fd117e to 9de6d53 Compare November 28, 2023 23:47
@dgarske dgarske marked this pull request as ready for review November 28, 2023 23:47
…and supports RSA and ECC. Requires wolfSSL/wolfTPM#311

Added CI testing for wolfPKCS11 with wolfTPM backend and single threaded.
SparkiDev
SparkiDev previously approved these changes Nov 30, 2023
…O_ENV` when setenv/getenv is not available. Only require `-ldl` for non-static builds.
@dgarske
Copy link
Collaborator Author

dgarske commented Dec 5, 2023

@SparkiDev this is ready for your review and finalization. I'll followup with any portability issues in a new PR.

@dgarske dgarske assigned SparkiDev and unassigned dgarske Dec 5, 2023
src/internal.c Outdated
case WOLFPKCS11_STORE_DHKEY_PRIV:
case WOLFPKCS11_STORE_DHKEY_PUB:
default:
maxSz = -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

BAD_FUNC_ARG?

src/internal.c Outdated
/**
* Free dynamic memory associated with the slot.
*
* @param slot [in] Slot object.
*/
static void wp11_Slot_Final(WP11_Slot* slot)
{
if (slot == NULL) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

return on next line

src/internal.c Outdated
@@ -3001,6 +3271,11 @@ static int wp11_Slot_Init(WP11_Slot* slot, int id)

ret = WP11_Lock_Init(&slot->lock);
if (ret == 0) {
#ifdef WOLFPKCS11_TPM
if (ret == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

'ret == 0' checks look wrong

@SparkiDev SparkiDev merged commit ffb7f06 into wolfSSL:master Dec 5, 2023
17 checks passed
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.

None yet

2 participants