From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,d5991e208f8d5b5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,19ab04458779b99e X-Google-Attributes: gid1164f8,public From: Russell Sasamori Subject: Re: [++] Re: Steal their thunder (was Re: Alpha window of opportunity?) Date: 1998/06/11 Message-ID: <357F7842.3A27C0C9@shore.net>#1/1 X-Deja-AN: 361612441 Content-Transfer-Encoding: 7bit References: <6l5gh1$vjc$1@piglet.cc.uic.edu> <35787CE8.51BF357E@videotron.ca> <6la6kf$ljm@crl3.crl.com> <357E265D.D42F5D98@shore.net> <357E3248.BFEC13E3@hda.hydro.com> Content-Type: text/plain; charset=us-ascii Organization: Shore.Net/Eco Software, Inc; (info@shore.net) Mime-Version: 1.0 Newsgroups: comp.arch,comp.sys.dec >especially if you also have a popcount I think Alpha has an instruction that counts the number of ones. > temp = lfsr & feedback_mask; > feedback_term = parity(temp); // # define parity(x) (popcount(x) & 1) > lfsr = (lfsr << 1) | feedback_term; I visualized the circuit in my head but could not figure out what it is doing in terms of polynomial algebra. OTOH this I can understand: if(LFSR & 0x8000000000000000) lfsr=(lfsr<<1)^POLYNOMIAL; else lfsr=(lfsr<<1); >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. I agree. Cryptography is one of the fields where you can get a lot of mileage out of building a dedicated hardware. >The Motorola altivec in-register What is altivec? >However, most (all?) other crypto algorithms are block algorithms, What do you mean by block? Do you mean as in "block error correcting code" where the elements of the group are a^1, a^2, ... a^n? --Russell (speaking only for myself)