Expose DecodePubHash

This commit is contained in:
Ettore Di Giacinto
2022-02-17 14:33:23 +01:00
parent fb83f16609
commit a7b15ad1f8
2 changed files with 3 additions and 2 deletions

2
tpm.go
View File

@@ -60,7 +60,7 @@ func GetPubHash(opts ...Option) (string, error) {
return "", fmt.Errorf("getting EK: %w", err)
}
hash, err := getPubHash(ek)
hash, err := DecodePubHash(ek)
if err != nil {
return "", fmt.Errorf("hashing EK: %w", err)
}