-
Notifications
You must be signed in to change notification settings - Fork 82
Hardening fixes for examples, fwTPM command handlers, and crypto helpers #503
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
Open
aidangarske
wants to merge
43
commits into
wolfSSL:master
Choose a base branch
from
aidangarske:fenrir-fixes-11
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a8947e6
F-3708 - Zero-initialize TBS_CONTEXT_PARAMS2 in TPM2_WinApi_SendCommand
aidangarske fc87b4b
F-3709 - NULL check wolfTPM2_NewKeyBlob in external_import
aidangarske 25ccf1c
F-3710 - Use goto exit on TPM2_LoadExternal failure in make_credential
aidangarske e9d4f58
F-3711 - Set rc on cert/key buffer load failure in tls_client_notpm
aidangarske 65e0daa
F-3918 - Bounds check pcrArray writes in secret_unseal and policy_sign
aidangarske 1a91936
F-3919 - Treat swtpm response size as uint32_t and bound below by header
aidangarske 660d3e7
F-3924 - Reject non-aligned size in block modes for EncryptDecryptBlock
aidangarske 22c7b40
F-3722 - Reject x509sign keyHandle in FwCmd_Sign
aidangarske 256faf9
F-3920 - Bitwise AND poll revents to accept POLLIN|POLLHUP
aidangarske 6d90662
F-3921 - Restore goto exit on TPM2_ObjectChangeAuth failure in native…
aidangarske 069dd33
F-3922 - Clamp -auth length in keygen example
aidangarske 4e16a16
F-3926 - Clamp -ownerauth length in seal_nv example
aidangarske c13dc57
F-3927 - Clamp -password length in keyimport example
aidangarske 1c06cba
F-3925 - Scale AES wrap to key strength in DecodeRsaDer and DecodeEccDer
aidangarske d695c06
F-3716 - ForceZero encKeyBuf and importedAuth in FwCmd_Import
aidangarske c4c1fb6
F-3717 - ForceZero authValue in FwCmd_LoadExternal
aidangarske fc35f9e
F-3718 - ForceZero SPDM vdMsg/vdRsp plaintext buffers before release
aidangarske acefdd2
F-3928 - ForceZero dataBuf in FwCmd_NV_Write before release
aidangarske 1b6fcae
F-3720 - Zero in.auth on BAD_FUNC_ARG paths in NVCreateAuthPolicy_ex
aidangarske 558dcc9
F-3721 - ForceZero HMAC/hash context in TPM2_KDFa_ex and TPM2_KDFe_ex
aidangarske e7de853
F-3931 - ForceZero GetRandom_Out in wolfTPM2_GetRandom
aidangarske 3ebc3a0
F-3712 - Branch-free HMAC comparison for FwCmd_Sign ticket
aidangarske 7d57dba
F-3713 - Branch-free HMAC comparison for FwCmd_CertifyCreation ticket
aidangarske 6faedd7
F-3714 - Use TPM2_ConstantCompare for SPDM responder verify-data HMAC
aidangarske 694b5cd
F-3715 - Add SHA3 and PQC reverse mappings in TPM2_GetAlgId
aidangarske e1f6d66
F-3723 - Replace derivedDataOrigin with firmwareLimited and svnLimited
aidangarske a1e161b
F-3923 - Log Zephyr getaddrinfo and per-attempt connect failures
aidangarske 8037c0f
F-3929 - Unconditional left-pad of ECDH X-coordinate in HPKE encap/decap
aidangarske 31b8121
F-3930 - Bound check offsets in ifx_fw_extract extractFW
aidangarske 8db493a
F-3719 - Add KAT for TPM2_ParamEnc_AESCFB cross-checking KDFa+AES-CFB
aidangarske a48bfab
F-3722 - Guard x509sign check on WOLFTPM_V185 in FwCmd_Sign
aidangarske 5149b3f
F-3714 - Use volatile inline accumulator for SPDM verify-data HMAC
aidangarske 5f6988d
F-3918 - Use element-count form for pcrArray bounds check
aidangarske a8f9860
F-3723 - Keep TPMA_OBJECT_derivedDataOrigin as deprecated alias
aidangarske e4ac3db
F-3709 - Scope NULL guards to heap build in external_import
aidangarske 3828dee
F-3711 - Use WOLFSSL_FATAL_ERROR not WOLFSSL_FAILURE in tls_client_notpm
aidangarske ca93d92
F-3709 - Zero-init dev in external_import before alloc-fail goto exit
aidangarske 6e45e04
F-3929 - Restore dhSz<=nSk guard in HPKE ECDH pad to avoid truncation
aidangarske 7943330
F-3928 - NULL-check dataBuf before ForceZero under WOLFTPM_SMALL_STACK
aidangarske 27386cd
F-3922 - Use sizeof(auth.buffer) for -auth length check in keygen
aidangarske f30ce7f
F-3927 - Hoist mid-block declarations in keyimport and seal_nv examples
aidangarske 66b650c
F-3924 - Document alignment contract and scrub per-iteration GetRando…
aidangarske 852c2d2
F-3715 - Test SHA3/PQC GetAlgId, EncryptDecryptBlock alignment, and D…
aidangarske File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.