Skip to content

Commit

Permalink
intelmeta fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 22, 2024
1 parent fea7a79 commit 3d398e8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmds/intelmeta/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func main() {
if meta.Polm != nil {
// https://go.dev/tour/methods/15
_, ok := meta.Polm.(cbntbootpolicy.Manifest)
if ok == true {
if ok {
pol := meta.Polm.(cbntbootpolicy.Manifest)
key := pol.PMSE.Key
alg := pol.PMSE.Signature.HashAlg
Expand All @@ -237,10 +237,9 @@ func main() {
meta.LeakedKey = hex.EncodeToString(lk[:8])
}
}
}
if ok == false {
} else {
p, ok := meta.Polm.(bgbootpolicy.Manifest)
if ok == true {
if ok {
// the first 4 bytes are some sort of flags
key := p.PMSE.Key
k := key.Data[4:]
Expand Down

0 comments on commit 3d398e8

Please sign in to comment.