Skip to content

Commit

Permalink
Merge branch 'comment'
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed May 15, 2024
2 parents 796a86f + 17fc6f5 commit 404d597
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/bootloader/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ func HashFirmware(firmwareVersion uint32, unsignedFirmware []byte) []byte {
}

// ParseSignedFirmware parses a signed firmware file and returns (sigdata, firmware). Errors if the
// format is invalid, or the firmware magic does not match the expected magic according to the
// device product.
// format is invalid, or the firmware magic is not recognized.
func ParseSignedFirmware(firmware []byte) (common.Product, []byte, []byte, error) {
if len(firmware) <= magicLen+sigDataLen {
return "", nil, nil, errp.New("firmware too small")
Expand Down

0 comments on commit 404d597

Please sign in to comment.