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

cryptography: add module for using TPM keys with the cryptography module #556

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

whooo
Copy link
Contributor

@whooo whooo commented Dec 18, 2023

This implements the necessary interfaces to use RSA and ECC keys with the cryptography modules.
Enabling for example creating a CA or CSR with TPM-backed keys.

test/test_cryptography.py Fixed Show fixed Hide fixed
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (140ca4a) 91.57% compared to head (09790d3) 91.51%.

Files Patch % Lines
src/tpm2_pytss/internal/crypto.py 57.14% 9 Missing and 9 partials ⚠️
src/tpm2_pytss/cryptography.py 97.56% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #556      +/-   ##
==========================================
- Coverage   91.57%   91.51%   -0.07%     
==========================================
  Files          17       18       +1     
  Lines        7017     7223     +206     
  Branches     1012     1056      +44     
==========================================
+ Hits         6426     6610     +184     
- Misses        418      429      +11     
- Partials      173      184      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This implements the necessary interfaces to use RSA and ECC keys with the
cryptography modules.
Enabling for example creating a CA or CSR with TPM-backed keys.

Signed-off-by: Erik Larsson <who+github@cnackers.org>
@whooo whooo added this to the next (master branch) milestone Dec 22, 2023
@whooo whooo added the hold hold this patch after release label Dec 29, 2023
@whooo whooo removed the hold hold this patch after release label Jan 5, 2024
@whooo whooo merged commit b31f492 into tpm2-software:master Mar 25, 2024
38 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.

2 participants