tpm2-tss
tpm2-tss copied to clipboard
FAPI: Enable usage of profile P_ECC384 for integration test.
- Usage of NIST P-384 ECC keys was prepared by: #2418 .
- The integration tests now were adapted to enable the running with A device provisioned with an ECC-384 EK instead of ECC-256.
- Several policies appropriate for the P_ECC384 were added.
- If necessary it's checked what policy has to be used depending on the profile.
- If e.g The device is provisioned with swtpm-setup and an EK
certificate for ECC NIST P-384 is produced, the integration
test with the device can be configured as follows:
configure --enable-integration --enable-unit --with-device=/dev/tpm0 \ --with-default-test-fapi-profile=P_ECC384 \ --enable-self-generated-certificate```
- Before running the test the test certificates from swtpm must be assigned:
export FAPI_TEST_ROOT_CERT=../swtpm-localca/swtpm-localca-rootca-cert.pem
export FAPI_TEST_INT_CERT=../swtpm-localca/issuercert.pem
Signed-off-by: Juergen Repp [email protected]
After this PR, I can confirm that all the tests except one pass for me. I've got a change which fixes the last testcase here:
https://github.com/tpm2-software/tpm2-tss/pull/2432
Thanks
Codecov Report
Merging #2430 (2905d0a) into master (da05fa4) will decrease coverage by
0.00%
. The diff coverage isn/a
.
:exclamation: Current head 2905d0a differs from pull request most recent head a556363. Consider uploading reports for the commit a556363 to get more accurate results
@@ Coverage Diff @@
## master #2430 +/- ##
==========================================
- Coverage 83.68% 83.67% -0.01%
==========================================
Files 351 351
Lines 37975 37982 +7
==========================================
+ Hits 31779 31783 +4
- Misses 6196 6199 +3
Impacted Files | Coverage Δ | |
---|---|---|
src/tss2-fapi/ifapi_io.c | 78.91% <0.00%> (-0.54%) |
:arrow_down: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more