My favorite crypto library is
libTomCrypt[
^]. It implements a lot of algorithms, has very nice clear source code that is good even for learning purposes, plus its crossplatform. Its licensing is also very nice:
WTFPL[
^].
Definitely check out his other math libraries too if you are interested!