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

tmputil: introduce non-global encoding logic #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 12, 2019

  1. tmputil: introduce non-global encoding logic

    Right now it's not possible to use the tpm and tpm2 packages
    simultaneously. Refactor the encoding logic into separate structs, so
    using one doesn't impact the other, while maintaining the top level API.
    
    As a follow up, refactor the tpm and tpm2 packages to use the encoders.
    For example instead of:
    
    	tpmutil.Pack(digest)
    
    Use:
    
    	var encoding = tpmutil.Encoding1_2
    	encoding.Pack(digest)
    ericchiang committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    e9ffeca View commit details
    Browse the repository at this point in the history