RSA Key Generator

I am creating a program on microntroller (which does not run any OS) and I cannot find any library in C that can give me the RSA key generator (PKCS # 1) (open and closed).

I believe OpenSSH is not an option, because it refers to Linux or Unix. I found some implementation of SSH, but only supports the client side (public key encoding).

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

+4
source share
2 answers

I very much doubt that there is such a library that does not use the functionality of the operating system and runs on a microcontroller. A quick Google search showed:

polarssl.org/rsa-source-code

Perhaps you can use or adapt this.

+2
source

For an embedded project without an OS, you can use:

Check the licenses for using these libraries in a commercial product. I'm currently trying to use PolarSSL to generate RSA key pairs. I use my shortened version of this library, which supports all hardware functions (AES, DES, 3DES, TRNG, SHA1, MD5, HMAC) built into the MCU STM32F4.

+2
source

All Articles