Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Separatefunctions #53

Merged
merged 4 commits into from
Aug 1, 2023
Merged

Commits on Jul 28, 2023

  1. Move computePCR7 function to pkg/trust

    Move computePCR7 to pkg so that it can be called by other
    go modules to acquire pcr7 values.
    
    Signed-off-by: Joy Latten <[email protected]>
    Joy Latten committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f91fd78 View commit details
    Browse the repository at this point in the history
  2. Generate the two TPM EA policies separately.

    Generate the TPM policies separately. It will then be
    easier to generate a single policy for revocation.
    
    Signed-off-by: Joy Latten <[email protected]>
    Joy Latten committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    b38687f View commit details
    Browse the repository at this point in the history
  3. Move addPcr7data from keyset.go to utils.go

    - This commit moved the addPcr7data() into utils.go which seem more
    appropriate. It can then be used in the future by another caller
    to seamlessly add signdata when generating a new keyset.
    - This commit also fixed createPCRIndex from altering the byte slice
    passed in.
    - Fixed spacing in KeysetExist() and savePubkeytoFile() in cmd/trust/utils.go
    - Added defaults to pcr7data flags for the policy files. Used same names as used
    in tpm-policy-gen subcommand. Thus the defaults from tpm-policy-gen can just be
    picked up with pcr7data subcommand (defaults).
    
    Signed-off-by: Joy Latten <[email protected]>
    Joy Latten committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    22891c4 View commit details
    Browse the repository at this point in the history
  4. Generate and add signdata info to a new keyset.

    Signed-off-by: Joy Latten <[email protected]>
    Joy Latten committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    e561f4b View commit details
    Browse the repository at this point in the history