Re: Security for embedded device

From: Michael Amling (nospam_at_nospam.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 14:07:58 GMT

Francois Grieu wrote:
> In article <40e120e0$0$828$a344fe98@news.wanadoo.nl>,
> "Joris Dobbelsteen" <none.of@your.business> wrote:
>
>
>>Does anyone know a simple cipher for a 8-bit processor with only a few bytes
>>of available memory, doing its job without about 1K cycles?

   If you can fit it in, AES is the best. One of it designers works for
a smart card company, and tried to make it implementable with few
resources. It does need at least 16 bytes for the key and 16 for the data.

>
>
> TEA
> <http://www.ftp.cl.cam.ac.uk/ftp/papers/djw-rmn/djw-rmn-tea.html>

  Or XTEA. Code and test vectors for both are at
http://www.cix.co.uk/~klockstone/teavect.htm.

>
> Be sure you understand the issue of equivalent keys; BTW,
> it can't strike you with a fixed key, only in fancy feedback modes.
>
>
>>Perhaps some advice on generating a initial key. I don't have EEPROM,
>>only RAM and two timers available. The key is needed when somebody
>>begins to talk to the chip (UART).
>
>
> TEA's 128 bits key is wide enough that its can be used without fear of
> brute-forcing. So maybe you can have a fixed key in ROM, and forget
> about the problem of key generation altogether. It'll save RAM, too.
> If you have no EEPROM or Flash, you have little options anyway.
>
> If you need a random value, it could be a CBC-MAC, using a ROM key, of
> anything you get that gives entropy; value of timer while in an iddle
> loop, and right in the interrupt when a character is received, are
> often good sources. If you have an ADC or RTC with independent XTall,
> mix that in.

--Mike Amling



Relevant Pages

  • Re: Security for embedded device
    ... it can't strike you with a fixed key, ... > only RAM and two timers available. ... It'll save RAM, too. ... If you need a random value, it could be a CBC-MAC, using a ROM key, of ...
    (sci.crypt)
  • Re: Minicom Connection Over Serial Port To PIC18F452 Device
    ... shadow RAM or nonvolatile RAM or EEPROM or FLASH EEPROM or what ... Thank you -- I will check my soldering work; I've already looked at the EEPROM and I think I did a poor job on pin 1. ... ROM - Read Only Memory, memory which can be programmed at most ...
    (Fedora)
  • Re: Allot in eeprom code
    ... My current design decision is for DP, ALLOT to point to the EEPROM, ... It is then upto the programmer to statically allocate ram using CONSTANT values. ... I did not know that a proposal for cross compiler standard ...
    (comp.lang.forth)
  • Re: Minicom Connection Over Serial Port To PIC18F452 Device
    ... This can be accomplished over a setup menu that appears in the minicom window. ... I'm quite willing to agree it may have soldering issues. ... shadow RAM or nonvolatile RAM or EEPROM or FLASH EEPROM or what ...
    (Fedora)
  • Re: how to generate time delay
    ... CPLDs for loading the RAM in FPGAs, ... I want the hardware circuitry to load the serial eeprom to ram. ...
    (comp.arch.embedded)