Re: AES and dynamic table generation

From: Tom St Denis (tomstdenis_at_iahu.ca)
Date: 01/12/04


Date: Mon, 12 Jan 2004 13:25:16 GMT


"Simon G Best" <s.g.best@btopenworld.com> wrote in message
news:40029237.800@btopenworld.com...
> Tom St Denis wrote:
> > "Brian Gladman" <brg@nowhere.at.all> wrote in message
> > news:nFWKb.19364$qx2.2163603@stones.force9.net...
> >
> >>Its very easy to make dynamic tables thread safe and they do have
> >>significant advantages in some environments.
> >
> > In a portable fashion?
>
> The OP didn't limit the context of the question he asked to just
> multithreaded, portable applications.
>
> Consider a microcontroller with limited nonvolatile memory, but plenty
> of RAM. If that's going to be used in an application where the speed of
> lookup tables is required, dynamic table generation might be the only
> option!

A microcontroller with little ROM and plenty of RAM? Where do these come
from? 8051 has 256 bytes of ram [that you'd want to use] and upto 64KB of
ROM... The 6805 series is similar. RAM is hella more expensive in fielded
designs then ROM is.

The only real "benefit" of dynamic tables is I can now send you a shorter
executable. But since the program only has to be stored once [this is AES
afterall] there's no point in wasting the 10KB [or so] of RAM on tables that
could just as easily fit in ROM.

Note that for the purposes of this post you can consider ROM to also mean a
"constant array in the C language".

Tom



Relevant Pages

  • Re: AES and dynamic table generation
    ... > Tom St Denis wrote: ... >> A microcontroller with little ROM and plenty of RAM? ... > They come from putting a lot of other stuff in the ROM besides AES code ... My point is ROM is cheaper than RAM, ...
    (sci.crypt)
  • ColdFire M5271 use 52Kb SRAM for C-stack to test DRAM at OS boot ?
    ... allocate C-stack there to test DRAM at the boot time? ... allocating stack on DRAM and jumping over it during DRAM test - anybody ... I need to run the RAM test before the bootrom copies itself into RAM, ... At this point the system is still executing instructions out of ROM. ...
    (comp.arch.embedded)
  • RE: I have a problem booting with Wce 6.0 (release) on Intel 855 gme b
    ... RAM 81C00000 02400000 RAM ... nk.exe:dwOEMTotalRAM 0 08000000 FIXUPVAR ... reserves for Watson dump capture. ... ceconfig.h (ROM 0x80A4F160) ...
    (microsoft.public.windowsce.embedded)
  • Re: DolphinDOS information needed (addendum)
    ... filled with the disk contents upon inserting every diskette. ... transfers were done from the RAM cache, which was very fast as it ... I have the ROM contents for DD2 and the drive side of DD3. ...
    (comp.sys.cbm)
  • Re: Help me Plz!Debugging RAM version of build,produces rt output,Bin version does not!
    ... There's no particularly strict reason ROM ... >>> And how is that ROM build actually different from the RAM build? ... > the images about initialising variables that is hidden by the RAM version. ... I would like to understand from you how to make sure the startup code ...
    (comp.arch.embedded)

Quantcast