We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 796a86f + 17fc6f5 commit 404d597Copy full SHA for 404d597
api/bootloader/util.go
@@ -40,8 +40,7 @@ func HashFirmware(firmwareVersion uint32, unsignedFirmware []byte) []byte {
40
}
41
42
// ParseSignedFirmware parses a signed firmware file and returns (sigdata, firmware). Errors if the
43
-// format is invalid, or the firmware magic does not match the expected magic according to the
44
-// device product.
+// format is invalid, or the firmware magic is not recognized.
45
func ParseSignedFirmware(firmware []byte) (common.Product, []byte, []byte, error) {
46
if len(firmware) <= magicLen+sigDataLen {
47
return "", nil, nil, errp.New("firmware too small")
0 commit comments