Search code examples
crsamicrocontrollerprivate-keykey-generator

C RSA key generator


I create a program on a microntroller (which does not run any OS), and I can't find any library in C which can give me a RSA (PKCS#1) key generator (public and private).

I suppose that OpenSSH isn't an option because it's link to Linux or Unix. I found some SSH implementation, but it supports only the client side (encoding through a public key).

Does a such C lib exists (RSA (PKCS#1) key generator (public and private) + encoding, decoding)?


Solution

  • I highly doubt that there is a library like that, that makes no use of operating system functionality and runs on a microcontroller. A quick google search brought this up:

    polarssl.org/rsa-source-code

    Maybe you can use or adapt that.