Reputation: 2996
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)?
Upvotes: 5
Views: 4665
Reputation: 21
For the embedded project without OS you can use:
Check the licenses for use this libraries in the comercial product. Currently I am trying to use PolarSSL for generating RSA key pairs. I use my cuted down version of this library that support all hardware features (AES, DES, 3DES, TRNG, SHA1, MD5, HMAC) incorporated into STM32F4 MCU.
Upvotes: 2
Reputation: 3743
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:
Maybe you can use or adapt that.
Upvotes: 2