Re: LibTomMath forked [SSE2 addons]

From: Erwann ABALEA (erwann_at_abalea.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 14:59:23 +0200

On Tue, 29 Jun 2004, Tom St Denis wrote:

[...]
> My patches do make the P4 a contender for crypto-sized bignum math. As an
> added bonus you get the rest of LTM to go with it [clean code, documented,
> well organized, lots of functionality] compared to what OpenSSL BN offers
> [decent speed but slower on P4, sloppy code, no documentation, just

Can't you read man pages? That was true several months ago, but they're
enhancing. And if the lack of documentation is a problem, why don't you
write it?

> My biggest gripe with OpenSSL BN is how poorly it was written. There are

Just do better, alone, and you'll be allowed to criticize. Don't forget
that OpenSSL is first based on SSLeay, mostly written by one guy, Eric
Young. And the BN part is really a short part. After all, OpenSSL is *not*
named OpenBN or OpenCrypto.

> few comments, it isn't thread safe and for the most part it's an #ifdef

First: it's thread safe.
Second: have you really read the BN part of OpenSSL? There's some #ifdef,
        but not that much.

> maze. The fact that they manually unroll loops is just sad. Specially
> since GCC nowadays is smart enough to know when to unroll and how much [for
> the given target]. Really the best way to serve OpenSSL in that respect
> would be to scrap BN and re-write it from scratch.

Do you also consider non-gcc compilers?

Sometimes you produce good things, but most of the time, you're trolling.
Try to learn about ASN.1, DER, X.5xx, PKCS#x (x > 1) and the like, and
work. Or go outside, get a nice girl, take some fun, and see the world
differently. It's neither black nor white, just like you.

-- 
Erwann ABALEA <erwann@abalea.com> - RSA PGP Key ID: 0x2D0EABD5
-----
DA> à moins qu'il n'y ait une recette du magret à la Guinness ?
Faut pas confondre canette et cannette.
-+- TT in : GNU - Coin coin, le poivrot et la bouteille de gnac -+-


Relevant Pages

  • Re: LibTomMath forked [SSE2 addons]
    ... My patches do make the P4 a contender for crypto-sized bignum math. ... [decent speed but slower on P4, sloppy code, no documentation, just ... My biggest gripe with OpenSSL BN is how poorly it was written. ... The fact that they manually unroll loops is just sad. ...
    (sci.crypt)
  • Re: Activeperl and 3DES encryption - probably simple
    ... I just tried using openssl, ... Unfortunately the documentation is very incomplete. ... I am not a perl programmer but I need to test that file ... input file, output file, encryption key and initialization ...
    (comp.lang.perl.misc)
  • Re: Ruby and Cryptography
    ... One example of using OpenSSL and Ruby for encryption is: ... It is true that the documentation on using OpenSSL from Ruby is lacking. ...
    (comp.lang.ruby)
  • Re: FreeBSD Security Advisory FreeBSD-SA-05:21.openssl
    ... >> looked through the documentation and can't find any reference to a ... >> runtime OpenSSL configuration file that would let me do this. ... > I'm not aware of a global option for OpenSSL, ...
    (FreeBSD-Security)