tags:

views:

284

answers:

4

Is there a small library for RSA or DSA without any dependencies like GMP or OpenSSL? (Written in C or Asm)

+1  A: 

I used this SSL library for a small HTTPS server in busybox: http://www.matrixssl.org/

It has a commercial and an open source version and is the best I found.

Devin Bayer
I already know this lib, also the other small SSL librarys like PolarSSL, but I'm searching for sth. really independent.
+1  A: 

You may find LibTomCrypt useful. It's written in C, supports RSA and DSA (along with a host of other algorithms), and is public domain software. You can read about its features here and download it here.

Emerick Rogul
Ahh, another one I tried before, but as I said I need plain RSA/DSA.
A: 

Okay I found myself one after searching not so commen coder sites http://z0mbie.daemonlab.org/ it's under PGP/RSA-RELATED if someones interested. But are there any others?

You're going to use a library that you found on a Virus/Trojan site? Unwise...
Emerick Rogul
Erm, well I read code before I use it in my apps and why should I not use it if it works and is open source? I personally think the source of code does not matter but the code itself.
Well, to each his own...
Emerick Rogul
Any good programmer and security researcher DOES read such stuff. Thanks man for this link. Looks great, but I wish I had found a tiny rsa implementation in C there
Christian
+1  A: 

Take a look at axTLS it's a BSD licensed TLSv1 SSL in C for embedded systems. It's built for POSIX sockets, but is easily ported.

The one thing it's missing is RSA key generation, but it can read X.509 certificates.

It's about 32KB of code space with a small RAM footprint.

Joby Taffey