I am trying to get my head around public key encryption using the openssl implementation of rsa in C++. Can you help? So far these are my thoughts (please do correct if nece
I write two examples around CAF's code. They are heavily modifed and uses OpenSSL's BIO container for more abstraction.
One example uses a file as input and the other example uses a string buffer. It uses RSA and DES, however you can easily change it from the code. Compile instructions are inside the code. I needed a working example, I hope someone find this useful. I also commented the code. You can get it from here:
Take file as input: https://github.com/farslan/snippets/blob/master/hybrid_file.c
Take string buffer as input: https://github.com/farslan/snippets/blob/master/hybrid_data.c