diff options
author | Rob Austein <sra@hactrn.net> | 2017-06-04 12:21:45 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-06-04 12:21:45 -0400 |
commit | a83d9dfba5f882ca75eaab9a166e6ad9794f2f90 (patch) | |
tree | e2032b46e192bbb4f89f30c945e7245f712cfd95 /hal_internal.h | |
parent | 61029eb57165c181497c09549cc2dd0fa9928f16 (diff) |
Tweak CRC input to be backwards compatabile with ksng.
Except for torture tests, we never really used the hideously complex
multi-block capabilities of the ksng version of the flash keystore,
among other reasons because the only keys large enough to trigger the
multi-block code were slow enough to constitute torture on their own.
So we can preserve backwards compatabliity simply by including the
former *chunk fields (renamed legacy* here) in the CRC and checking
for the expected single-block key values. We probably want to include
everything in the CRC in any case except when there's an explicit
reason omit something, so, this is cheap, just a bit obscure.
At some point in the future we can phase out support for the backwards
compatible values, but there's no particular hurry about it unless we
want to reuse those fields for some other purpose.
Diffstat (limited to 'hal_internal.h')
0 files changed, 0 insertions, 0 deletions