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

Added CSharp wrapper support for RSA encrypt/decrypt and Sign/Verify #232

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Jul 21, 2022

  • Fixed issue with sign signature buffer size checking.
  • Changed wrapper algorithm arguments to use enum TPM2_Alg.

… Fixed issue with sign signature buffer size checking. Changed wrapper algorithm arguments to use enum TPM2_Alg.
@dgarske dgarske requested a review from anhu July 21, 2022 22:56
…ting doxygen from tpm2_wrap.h to inline CSharp function documentation format.
@dgarske dgarske removed their assignment Jul 21, 2022
XMEMCPY(sig + signOut.signature.signature.ecdsa.signatureR.size,
signOut.signature.signature.ecdsa.signatureS.buffer,
signOut.signature.signature.ecdsa.signatureS.size);
sigOutSz = signOut.signature.signature.ecdsa.signatureR.size +
Copy link
Member

Choose a reason for hiding this comment

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

Should there be a check here that R and S sizes are equal? You assume so below during the memcpy()

@anhu anhu assigned dgarske and unassigned anhu Jul 22, 2022
…R_Generate_ex` and possible use of uninitialized `csrKey->keyType` on cleanup.
@dgarske dgarske requested a review from anhu July 22, 2022 16:16
@dgarske dgarske assigned anhu and unassigned dgarske Jul 22, 2022
@anhu anhu merged commit 7e0fe8f into wolfSSL:master Jul 22, 2022
@dgarske dgarske deleted the csharp_asym branch July 22, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants