Skip to content

Commit

Permalink
secboot: fix a typo
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Jun 1, 2022
1 parent a962ea7 commit 3a5ec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secboot/secboot_sb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ func (s *secbootSuite) TestPCRHandleOfSealedKey(c *C) {
c.Assert(h, Equals, uint32(0))

skf := filepath.Join(d, "sealed-key")
// partially valid salealed key with correct header magic
// partially valid sealed key with correct header magic
c.Assert(ioutil.WriteFile(skf, []byte{0x55, 0x53, 0x4b, 0x24, 1, 1, 1, 'k', 'e', 'y', 1, 1, 1}, 0644), IsNil)
h, err = secboot.PCRHandleOfSealedKey(skf)
c.Assert(err, ErrorMatches, "(?s)cannot open key file: invalid key data: cannot unmarshal AFIS header: .*")
Expand Down

0 comments on commit 3a5ec1f

Please sign in to comment.