Since things didn't work out between me and mbedtls, here are the basic encryption algorithms.

Auto generated API documentation and code listings for encryption

Code

rsa-small-numbers.cpp [code]
xor.cpp [code]
xor.h [code]