mirror of
https://github.com/google/go-attestation.git
synced 2024-12-18 20:47:57 +00:00
Fix broken build from intersection of two PRs (#155)
This commit is contained in:
parent
67c0b4ad07
commit
022cf8e2ae
@ -49,7 +49,7 @@ func inject(e *EventLog, pcr int, data string) error {
|
||||
for _, alg := range e.Algs {
|
||||
h := alg.cryptoHash().New()
|
||||
h.Write([]byte(data))
|
||||
evt.digests = append(evt.digests, h.Sum(nil))
|
||||
evt.digests = append(evt.digests, digest{hash: alg.cryptoHash(), data: h.Sum(nil)})
|
||||
}
|
||||
e.rawEvents = append(e.rawEvents, evt)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user