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

Minor commits for tpm2 #29426

Merged
merged 5 commits into from
Oct 3, 2023
Merged

Minor commits for tpm2 #29426

merged 5 commits into from
Oct 3, 2023

Commits on Oct 3, 2023

  1. tpm2: allow tpm2_make_encryption_session() without bind key

    Allow providing no bind key, and use ESYS_TR_NONE instead.
    ddstreet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    73592a7 View commit details
    Browse the repository at this point in the history
  2. tpm2: update tpm2 test for supported commands

    The test expects TPM2_CC_FIRST - 1 and TPM2_CC_LAST + 1 to be unsupported, but
    those are not necessarily invalid commands. Instead test known-invalid
    commands. Also add some more valid commands.
    ddstreet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    171d5b6 View commit details
    Browse the repository at this point in the history
  3. tpm2: use GREEDY_REALLOC_APPEND() in tpm2_get_capability_handles(), c…

    …ap max value
    
    Simplify the function with GREEDY_REALLOC_APPEND(). Also limit the size_t-sized
    max value to UINT32_MAX since that's the maximum of the range this searches,
    and the max parameter for tpm2_get_capability() is uint32_t.
    ddstreet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    7014006 View commit details
    Browse the repository at this point in the history
  4. tpm2: change tpm2_unseal() to accept Tpm2Context instead of device st…

    …ring
    
    This matches the change to tpm2_seal(), which now accepts a Tpm2Context instead
    of a device string.
    
    This also allows using the same TPM context for sealing and unsealing, which
    will be required by (future) test code when sealing/unsealing using a transient
    key.
    ddstreet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    db7fdf1 View commit details
    Browse the repository at this point in the history
  5. tpm2: cache TPM's supported ECC curves

    This brings the tpm2_supports_ecc_curve() api in line with the other
    tpm2_supports_*() functions, of returning a boolean.
    ddstreet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    639dca0 View commit details
    Browse the repository at this point in the history