Comment 15 for bug 1938678

Revision history for this message
ethan.hsieh (ethan.hsieh) wrote : Re: [intel] [tgl-h][iotg] [hwe-tpm] Ubuntu Core hangs during bootup on TGL-H

https://github.com/canonical/go-tpm2/commit/bd7cad4936577a496ebfca7272fef34c32e3bc0b

commit bd7cad4936577a496ebfca7272fef34c32e3bc0b
Author: Chris Coulson <email address hidden>
Date: Tue Aug 10 17:46:55 2021 +0100

    Use HashAlgorithmId instead of crypto.Hash in various places

    Some recent commits changed HashAlgorithmId to crypto.Hash in
    some public APIs (mostly in util/), but this isn't really the
    right thing to do - it creates inconsistency (some arguments
    are represented by go-tpm2 types and others by go types),
    and the TPM spec currently has one hash algorithm with no
    corresponding crypto.Hash value (SM3). Whilst it's not possible
    to use this algorithm in go-tpm2 right now even though there
    is a go implementation of it (it requires it to be registered
    with the crypto package), it may be possible to support it
    in the future regardless of whether it gets a corresponding
    crypto.Hash value.

    Switch the use of crypto.Hash back to HashAlgorithmId in
    various places.