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

View File

@@ -43,7 +43,8 @@ type ChallengeResponse struct {
Secret []byte
}
func getPubHash(ek *attest.EK) (string, error) {
// DecodePubHash returns the public key from an attestation EK
func DecodePubHash(ek *attest.EK) (string, error) {
data, err := pubBytes(ek)
if err != nil {
return "", err