From: Terje Mathisen <Terje.Mathisen@hda.hydro.com>
Subject: [++] Re: Steal their thunder (was Re: Alpha window of opportunity?)
Date: 1998/06/10 [thread overview]
Message-ID: <357E3248.BFEC13E3@hda.hydro.com> (raw)
In-Reply-To: 357E265D.D42F5D98@shore.net
Russell Sasamori wrote:
>
> > the conclusion seems to be that 128-bits are useful for
> > some multimedia stuff (AltiVec should demonstrate that),
> > and some crypto work seems to be a lot faster with them.
>
> George:
>
> How would cryptography benefit from wider registers and ALU's?
> I thought the most frequently performed operations were emulating LFSR's so I
Using wide LFSR's is a valid way to perform "hard" crypto, and it's
currently being used (AFAIK) by the Norwegian military.
If you have a 128-bit LFSR, then having 128-bit registers makes it
fairly simple to do the feedback, especially if you also have a popcount
(or just a parity!) instruction:
temp = lfsr & feedback_mask;
feedback_term = parity(temp); // # define parity(x) (popcount(x) & 1)
lfsr = (lfsr << 1) | feedback_term;
This would generate about 3-5 instructions, depending on the cpu
architecture, and a maximum throughput of about 2 cycles/iteration (due
to serial dependencies).
On a 500MHz cpu, this would enable up to about 30+ MB/s, still far below
what a cheap FPGA should do with no (very low) host cpu overhead.
It would probably be faster though to use a few tables to perform this
algorithm on some number of bits simultaneously, even though you would
need quite a bit of table space.
The Motorola altivec in-register table lookups might be useful in this
application?
However, most (all?) other crypto algorithms are block algorithms,
working on some number of bits in each fixed block, and 128 happens to
be a very common block size currently.
> cannot imagine how having a 128-bit ALU can present such a big benefit over a
> 64-bit ALU, for example. (Unless the the ALU was custom-designed to do
> cryptography work).
It would not give any big benefit, just make it quicker to do all
blockwide operations. If the algorithm is memory bandwidth limited (not
too likely for hard crypto?), then having a wide memory interface to a
narrover cpu would do just as well.
Terje
--
- <Terje.Mathisen@hda.hydro.com>
Using self-discipline, see http://www.eiffel.com/discipline
"almost all programming can be viewed as an exercise in caching"
next prev parent reply other threads:[~1998-06-10 4:00 UTC|newest]
Thread overview: 100+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-04 4:00 Alpha window of opportunity? (was Re: Intel announces six month Merced delay.) Anil T Maliyekke
1998-06-05 4:00 ` Steal their thunder (was Re: Alpha window of opportunity?) Alan Chee
1998-06-05 4:00 ` Ketil Z Malde
1998-06-05 4:00 ` Doug Siebert
1998-06-05 4:00 ` Anil T Maliyekke
1998-06-06 4:00 ` Andy Glew
1998-06-05 4:00 ` Brian Hurt
1998-06-09 4:00 ` M Sweger
1998-06-10 4:00 ` 128-bit CPUs (was: Re: Steal their thunder ) Gary Heston
1998-06-12 4:00 ` Steal their thunder (was Re: Alpha window of opportunity?) Gregg E Economou
1998-06-12 4:00 ` Silliness (was Re: Steal their thunder) Bill Moyer
1998-06-13 4:00 ` Jamie Lokier
1998-06-17 4:00 ` Gregg E Economou
1998-06-18 4:00 ` Bernd Paysan
1998-06-18 4:00 ` James Cownie
1998-06-18 4:00 ` Stanley Chow
1998-06-13 4:00 ` Steal their thunder (was Re: Alpha window of opportunity?) Jamie Lokier
1998-06-15 4:00 ` M Sweger
1998-06-17 4:00 ` Gregg E Economou
1998-06-05 4:00 ` Stefan Monnier
1998-06-06 4:00 ` Gregg E Economou
1998-06-06 4:00 ` Ketil Z Malde
1998-06-09 4:00 ` M Sweger
1998-06-14 4:00 ` Heikki Kultala
1998-06-05 4:00 ` Kai Harrekilde-Petersen
1998-06-05 4:00 ` Bernd Paysan
1998-06-05 4:00 ` Craig Burley
1998-06-08 4:00 ` Bernd Paysan
1998-06-09 4:00 ` Maynard Handley
1998-06-06 4:00 ` Gregg E Economou
1998-06-06 4:00 ` Thomas Womack
1998-06-08 4:00 ` Gregg E Economou
1998-06-08 4:00 ` Alan Chee
1998-06-07 4:00 ` Pierre Asselin
1998-06-05 4:00 ` JF Mezei
1998-06-05 4:00 ` George Herbert
1998-06-09 4:00 ` M Sweger
1998-06-10 4:00 ` Russell Sasamori
1998-06-10 4:00 ` Peter L. Montgomery
1998-06-11 4:00 ` Russell Sasamori
1998-06-10 4:00 ` Terje Mathisen [this message]
1998-06-11 4:00 ` [++] " Russell Sasamori
1998-06-11 4:00 ` Terje Mathisen
1998-06-11 4:00 ` Kai Harrekilde-Petersen
1998-06-10 4:00 ` Bill Moyer
1998-06-11 4:00 ` Russell Sasamori
1998-06-11 4:00 ` Bill Moyer
1998-06-06 4:00 ` Ketil Z Malde
1998-06-06 4:00 ` Gregg E Economou
1998-06-08 4:00 ` Bill Broadley
1998-06-08 4:00 ` Peter da Silva
1998-06-08 4:00 ` stev knowles
[not found] ` <6lhc0e$bak@web.nmti.com>
1998-06-08 4:00 ` stev knowles
1998-06-08 4:00 ` Gregg E Economou
1998-06-08 4:00 ` Terry Shannon
1998-06-09 4:00 ` Donald G. Marchlenski
1998-06-09 4:00 ` Peter da Silva
1998-06-10 4:00 ` Special VMS Sauce on WNT from McDEC: see http://www.acersoft.com Terry Shannon
[not found] ` <6lmt5s$oaa@web.nmti.com>
1998-06-10 4:00 ` Graham Allan
1998-06-10 4:00 ` Peter da Silva
1998-06-11 4:00 ` Graham Allan
1998-06-11 4:00 ` Quentin Fennessy
1998-06-11 4:00 ` Peter da Silva
1998-06-12 4:00 ` Quentin Fennessy
1998-06-18 4:00 ` Fred Kleinsorge
1998-06-18 4:00 ` quodling
1998-06-12 4:00 ` Steal their thunder (was Re: Alpha window of opportunity?) Gregg E Economou
1998-06-09 4:00 ` JF Mezei
1998-06-09 4:00 ` [++] " Terje Mathisen
1998-06-09 4:00 ` stev knowles
1998-06-13 4:00 ` Andrew C. Stoffel
1998-06-08 4:00 ` Terry Shannon
1998-06-08 4:00 ` Miro Jurcevic
1998-06-09 4:00 ` Russell Sasamori
1998-06-09 4:00 ` Ketil Z Malde
1998-06-09 4:00 ` Bernd Paysan
1998-06-09 4:00 ` Joachim Strombergson
1998-06-09 4:00 ` Petter Gustad
1998-06-10 4:00 ` What is bitness? Russell Sasamori
1998-06-10 4:00 ` Zalman Stern
1998-06-10 4:00 ` Ketil Z Malde
1998-06-11 4:00 ` Russell Sasamori
1998-06-11 4:00 ` Ketil Z Malde
1998-06-10 4:00 ` Peter da Silva
1998-06-11 4:00 ` Gary Heston
1998-06-11 4:00 ` Peter da Silva
1998-06-12 4:00 ` Mike McCarty
1998-06-10 4:00 ` Bernd Paysan
1998-06-11 4:00 ` Russell Sasamori
1998-06-10 4:00 ` Jan Vorbrueggen
1998-06-10 4:00 ` Alex Colvin
1998-06-10 4:00 ` Jeffrey S. Dutky
1998-06-11 4:00 ` Russell Sasamori
1998-06-11 4:00 ` Ketil Z Malde
1998-06-11 4:00 ` Jeffrey S. Dutky
1998-06-12 4:00 ` Ketil Z Malde
1998-06-14 4:00 ` msimon
1998-06-11 4:00 ` Russell Sasamori
1998-06-11 4:00 ` Russell Sasamori
1998-06-06 4:00 ` Alpha window of opportunity? (was Re: Intel announces six month Merced delay.) Matthias Dolder
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox