Security Hardening and TCG v185 compliance #496
Merged
dgarske merged 24 commits intowolfSSL:masterfrom Apr 29, 2026
Merged
Conversation
Member
aidangarske
commented
Apr 28, 2026
…_ATTEST_NV_DIGEST when NV_Certify size and offset are both zero
…t/flush: fix copy-paste so HMAC sessions loop walks 0x02000000-0x02000003
…set offset and fix loop continuation so detached PKCS7 body actually gets written
…ion: enable parameter encryption attrs for salted sessions, not only bind+salt
…stParams consumes ECDAA count field per Part 2 §11.2.1.5
…consumes ECDAA count field per Part 2 §11.2.1.5
…fyCreation consumes ECDAA count field per Part 2 Sec. 11.2.1.5
…et_ParseAttest decodes TPM_ST_ATTEST_NV_DIGEST as TPMS_NV_DIGEST_CERTIFY_INFO
…rypt Brainpool curves to TPM_ECC_BP_*_R1 (0x003X), not Barreto-Naehrig BN_P256
…uard primary unload against NULL on early init failure
…blicKey_ex: caller-controlled scheme, hashAlg, and objectAttributes for ECDH peer keys
…t/Decrypt return BUFFER_E for oversized input instead of silently truncating
…cheme/VerifyHashTicket: reject mismatched digest size for RSA, gate ECDSA pad/truncate
…uthPolicy: derive nameAlg from authPolicySz so SHA-384/SHA-512 policies are satisfiable
…et_ParsePublic resyncs to outer pub->size to prevent inner-size desync drift
…et_ParsePoint resyncs to outer point->size to prevent inner-size desync drift
…on/activate_credential: guard primary unload against NULL on early init failure
…yload: guard primary unload against NULL on early init failure
…t: scrub plaintext copy in rsaEncIn on every exit path
…plate_KeyedHash: scheme defaults to TPM_ALG_NULL when neither sign nor decrypt is requested
…et_AppendSignature/ParseSignature explicitly handles TPM_ALG_NULL and warns on unrecognized sigAlg
…on/activate_credential: zero-init tpmSession so early-failure cleanup is safe
8ad2d41 to
4817e79
Compare
…WTPM_NO_NV builds too
dgarske
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.