Re: Can't set CRC result by inital value?

From: Oliver Betz (obetz_at_despammed.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 14:25:44 +0100

Andrew Swallow <am.swallow@btopenworld.com> wrote:

>> the reason for the question was that I could avoid storage for the
>> expected CRC result if I set the initial value so that it always
>> yields zero.
>
>Then you have to store the initial value so no storage is saved.

sorry, my explanation was too short. I meant RAM storage. If I check
for correct value at the end of a transmission, I must either save the
correct CRC at the beginning, or transmit it at the end.

In my example (microcontroller Flash loader as you might have
guessed), I send BASE64 encoded data in blocks, and I want to store
the last block only if the CRC of the whole transmission is correct
(authentication).

So when I have to decide whether to store or not, the block buffer is
still occupied, therefore "transmit CRC later" is not suitable.

But I can send an initial CRC value at the beginning of the whole
procedure, along with the unique IV necessary for RC4, without
additional effort.

Oliver

-- 
Oliver Betz, Munich


Relevant Pages

  • Re: CRC_CCITT 16-bit assembly language code
    ... return crc; ... The optimal routine depends upon the width of the incoming data and ... FLASH to store a table you can get along with doing a single table ...
    (comp.arch.embedded)
  • Re: Password checking theorical question
    ... using poor CRC32 to store the crc of the ... the CRC checksum available in plaintext. ... so the complexity of the attack has been reduced significantly. ...
    (sci.crypt)
  • Re: srecord CRC16
    ... > I'm planning to add CRC to program memory. ... when amount of flash changes) are welcome. ... How are you going to use the CRC? ... compute and store the CRC. ...
    (comp.arch.embedded)
  • Re: Convert to .exe and crc help
    ... I would like to be able to store the crc value in the program and check ... I want to convert this to an .exe. ... >It looks like buf db 0 needs to be at the end of the file. ...
    (alt.lang.asm)
  • Re: Two questions about USB CRC
    ... at the end could have the same encoding results. ... You don't compute the CRC of only the payload and then ... If on transmission there are trailing 0s (after the ... the shift register is preloaded with 0s ...
    (sci.math)

Loading