JS add some missing static functions#22
JS add some missing static functions#22amarochk merged 4 commits intomicrosoft:masterfrom baudev:baudev-add-some-static-functions
Conversation
|
The last commit add also |
amarochk
left a comment
There was a problem hiding this comment.
What is the advantage of a static method over the direct constructor usage?
|
Any excepts that it matches with the
It's just a small comfort to make them existing! I don't see any reason to refuse implementing them in |
|
Indeed, Java version has from(), too. It is the original TSS.Net that does not have it. Thank you for your contribution! I'm going to merge it now. One note, in case you'll be doing any additions in the future. TpmTypes.js is actually an auto-generated file, so please do not change anything in existing methods or comments, as these changes will be lost. And in order to add new methods I'll add a new snippets file src/TpmExtensions.js.snips, similar to how it is done in TSS.Java. |
This PR add two more useful functions:
from()forTPM_HANDLEclassnullTicket()forTPMT_TK_HASHCHECKclassIt’s a small step forward in the hope of seeing the JS library functional one day! (
PCR_Read()is not working for example…)