tags:

views:

43

answers:

1

Are there any very simple cross-platform C++ libs which can do assymetric encription? Not necessary efficient, just working. I imagine it could be just 3-4 functions in an .h file which do arbitrary precission math and that's it.

I belive using OpenSSL here is an overkill.

+1  A: 

http://cryptopp.com/ looks to be what I need. One might tear it down to individual files, and it has RSA samples.

BarsMonster
+1 for crypto++. Often "simple" RSA implementations are lacking essential things, such as a secure padding. crypto++, as far as I can judge is carefully implemented and some versions of it have gone through NIST certification.
Accipitridae
@Accipitridae: b-b-but he answered his *own* question, and he's been a SO user for 7 months!
GregS
@GregS: I don't get you irony here :-)
BarsMonster
@GregS: Yup. I noticed. Maybe you can regard this as a vote for Wei Dai's work.
Accipitridae