-
Notifications
You must be signed in to change notification settings - Fork 52
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
Refactoring Phase 1 increment 2. #96
Refactoring Phase 1 increment 2. #96
Conversation
8de3a6c
to
8fea7e1
Compare
Thanks a lot for doing the re-organisation into something that makes sense and respects the TSS structure 👌 For the lists: @ionut-arm suggested in an older PR that we could also have our own list wrapper type over a generic parameter type. Are TSS lists defined somewhere? If it can always be represented as a About copyrights for new files: it might be better to put 2020 as the year. |
Are TSS lists defined some where? Yes, in the specification(Part 2: Structures, Chapter 10.9 Lists). To have our own List type would be nice though I am not sure right now if it is possible but absolutely something that should be investigated. Pcr Selection List as an example would need to be rewritten in that case. Because it uses a HashMap in order to find selections associated with the same HashingAlgorithm and squash them together. |
Yes sure, I don't want to put that as a work to do for this PR 😃 Let's create an issue though! |
84c5b96
to
bb86f0c
Compare
Fixed some of the copyright and added a test for DigestList. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looking really good, I left a few minor comments below
bb86f0c
to
b4f3212
Compare
Hi @Superhepper , If you rebase your PR, then we can merge it! |
cd4ae60
to
642ae31
Compare
-- Renamed PcrSelections to PcrSelectionList and moved it to structures/lists -- Moved DigestList to structures/lists -- Added dir structures/pcr -- Created PcrSelection and PcrSelect. -- Added Copyright info to the new files. Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
642ae31
to
969c8ea
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add body length limit
Refactoring phase one increment 2. Is part of the #87 issue.
-- Renamed PcrSelections to PcrSelectionList and moved it to
structures/lists
-- Moved DigestList to structures/lists
-- Added dir structures/pcr
-- Created PcrSelection and PcrSelect.
-- Added Copyright info to the new files.
Signed-off-by: Jesper Brynolf jesper.brynolf@gmail.com