RFC: generating a header using the linker (CRC calculation)
Paul Koning
paulkoning@comcast.net
Wed Feb 15 22:11:54 GMT 2023
> On Feb 15, 2023, at 5:08 PM, Ulf Samuelsson <binutils@emagii.com> wrote:
>
> The AUTOSARS says CRC-64 ECMA.
> It is also popular in Linux.
> I have not seen anyone using SHA algorithms or MD5 in any embedded project I have worked with to verify the flash contents.
I'm not sure I have on anything I worked on, but it's how one would do cryptographic integrity (for example, signed code) when tamper-resistance is required. It's more likely to show up as a signature on an update kit, which would prevent the installation of false updates.
> My proposed implementation would make it easy to use the ISO or ECMA variants, but also allow a user defined polynom.
That's certainly useful, so long as it is understood that CRC provides no protection whatsoever against deliberate tampering.
paul
More information about the Binutils
mailing list