Compare modular multiplication algorithms in terms of speed
From: George Joseph (george.joseph_at_student.up.ac.za)
Date: 07/31/03
- Next message: Phillip Hauser: "Re: random data"
- Previous message: Bryan Olson: "Re: Assembler versus ANSI C"
- Next in thread: Bryan Olson: "Re: Compare modular multiplication algorithms in terms of speed"
- Reply: Bryan Olson: "Re: Compare modular multiplication algorithms in terms of speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 31 Jul 2003 13:58:08 +0200
I would like to compare my modular multiplication algorithm to Montgomery &
Barrett (I think these algorithms are the fastest in terms of modular
multiplication, if I'm wrong please tell me).
Would it prove to be worthwhile result if I compare my algorithm to
Montgomery/Barrett implemented my programming skills, rather than using
MIRACL or LibTomMath?
For example: (a*b) mod(c) a,b,c = n bits long (excluding all
precomputations)
for n=512bits My Montgomery = 50ms per iteration, My method = 35ms per
iteration and MIRACL Montgomery = 5us per iteration.
Now obviously the programmers who created MIRACL used assembler coding and
have done years of optimizations to their code, while I have just general C
knowledge. I am not trying to compare who the better programmer is, but
rather propose an alternative method to Montgomery. Is it worth my while
trying to optimise my code to MIRACL's standard and then publish it, or
compare it with my Montgomery & Barrett implementations.
Regards
"Clueless" George
- Next message: Phillip Hauser: "Re: random data"
- Previous message: Bryan Olson: "Re: Assembler versus ANSI C"
- Next in thread: Bryan Olson: "Re: Compare modular multiplication algorithms in terms of speed"
- Reply: Bryan Olson: "Re: Compare modular multiplication algorithms in terms of speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|