Timo Teräs wrote:
I'm looking at openssl-1.0.0-beta3 and openssl-0.9.8k backport
of the montasm stuff.

It looks like the VIA Padlock stuff has been implemented, but
it is never used as the via-mont.pl is not run by any make
target. Or am I missing something?

Ok. It's definitely not enabled by default.

I managed to make a hardwired build of openssl-0.9.8k +
padlock montgomery stuff. Got about 3x performance boost on my
VIA Eden box.

Also, I'm interested if the code autodetects the CPU and runs
the appropriate version of assembly code, or if it's fixed to
the build time CPU choice? At least it looks to be fixed.

And read the relevant CPU detection stuff too. Looks like
there's no real autodetection (except for SSE which is ends
up as bit test for each function call).

I'd like to do this (atleast for the montmul) in a more generic
way. So that each variant is compiled in with different function
name and bn_mul_mont would be a function pointer, that
initial points to "detect" function which updates the pointer
to the cpu type variant.

Does that sound acceptable?

- Timo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to