Re: AES in LibTomCrypt
From: Tom St Denis (tomstdenis_at_iahu.ca)
Date: 06/12/03
- Next message: Mok-Kong Shen: "Re: (long) An AES implementation for 32-bit platforms"
- Previous message: Brian Gladman: "Re: AES in LibTomCrypt"
- In reply to: John E. Hadstate: "Re: AES in LibTomCrypt"
- Next in thread: bubba: "Re: AES in LibTomCrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 12 Jun 2003 19:42:45 GMT
John E. Hadstate wrote:
> "Tom St Denis" <tomstdenis@iahu.ca> wrote in message
> news:Hj0Ga.65019$G_.5528@news02.bloor.is.net.cable.rogers.com...
>
>>And on x86 platforms it doesn't matter that much. For example, my LTC
>>timing [new code] does 2^21 loops, AES was clocked at 453 cycles [Athlon
>>XP, niced] or for a total of about 950,009,856 cycles. A RDTSC takes 11
>>cycles on the Athlon [and 86 on the P4 iirc...] which means it
>>contributes a huge whopping sum of zero to the overall cycle count since
>>it is performed once at the end.
>>
>
>
> Tom,
>
> When you say "AES was clocked at 453 cycles...", did you estimate that from
> timing, or did you use some software to process the object code and count
> the cycles?
>
> If you estimated from timing, exactly what did you do to get that figure?
My high-res timer [will be part of LTC v0.86] basically does this
y1 = 0;
t_start();
while (y1 < (1<<22)) {
DO256;
y1 += 256;
}
t1 = t_read();
Where t1/y1 is the cycle time per call [I recently changed it to 2^22 to
get slightly better resolution].
The fact that the encrypt takes the majority of time the skew from
overhead goes to nill after 2^22 iterations.
So when I say AES takes 453 cycles I mean that the cycle count was
roughly 453 * 2^22 for the inner loop.
Tom
- Next message: Mok-Kong Shen: "Re: (long) An AES implementation for 32-bit platforms"
- Previous message: Brian Gladman: "Re: AES in LibTomCrypt"
- In reply to: John E. Hadstate: "Re: AES in LibTomCrypt"
- Next in thread: bubba: "Re: AES in LibTomCrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|