Fix broken build from intersection of two PRs (#155)

This commit is contained in:
Tom D 2020-04-16 11:42:48 -07:00 committed by GitHub
parent 67c0b4ad07
commit 022cf8e2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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