Replies: 2 comments
-
Correct. In this case you presumably want the TPM 2 to use the profile without modifications.
Correct. In this case you want the disabled algorithms to be removed from the profile.
From the swtpm_setup man page:
Correct. When "check" is used on a non-FIPS-enabled (normal) host, the algorithms are tested and each one that is passing the test is kept, others are removed. What will not pass the tests these days are sha1 signature creation and verification and therefore you should have this profile below with Attributes indicating sha1 not being supported for signatures. The sha1 in the list of algorithms is there to still enable the sha1 PCR bank:
Correct. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for detailed explanations!
(2)on FIPS host:
I guess they're also as expected. I'll update our test cases. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @stefanberger
I did some tests on <profile source="builtin:custom" [removeDisabled="check/fips-host"] />, could you confirm whether the results are as expected please? Thank you!
Steps:
configure vtpm xml with profile setting and start vm, check algorithms in vm-swtpm log.
(swtpm-0.10.1-1.fc43.x86_64, libtpms-0.10.0-4.fc43.x86_64)
Results:
(1)removed: tdes,tdes-min-size=128, camellia,camellia-min-size=128, rsaes.
(2)changed rsa-min-size from 1024 to 2048, changed ecc-min-size from 192 to 224.
Ref:
1.algorithms list A:
"rsa,rsa-min-size=1024,tdes,tdes-min-size=128,sha1,hmac,aes,aes-min-size=128,mgf1,keyedhash,xor,sha256,sha384,sha512,null,rsassa,rsaes,rsapss,oaep,ecdsa,ecdh,ecdaa,sm2,ecschnorr,ecmqv,kdf1-sp800-56a,kdf2,kdf1-sp800-108,ecc,ecc-min-size=192,ecc-nist,ecc-bn,ecc-sm2-p256,symcipher,camellia,camellia-min-size=128,cmac,ctr,ofb,cbc,cfb,ecb"
2.algorithms list B:
"rsa,rsa-min-size=2048,sha1,hmac,aes,aes-min-size=128,mgf1,keyedhash,xor,sha256,sha384,sha512,null,rsassa,rsapss,oaep,ecdsa,ecdh,ecdaa,sm2,ecschnorr,ecmqv,kdf1-sp800-56a,kdf2,kdf1-sp800-108,ecc,ecc-min-size=224,ecc-nist,ecc-bn,ecc-sm2-p256,symcipher,cmac,ctr,ofb,cbc,cfb,ecb"
Beta Was this translation helpful? Give feedback.
All reactions