aboutsummaryrefslogtreecommitdiff
path: root/key_update.h
blob: ff6271ddfb8fa57c781a0363ee847935e0f5cbd5 (plain)
1
2
3
4
5
6
#include <openssl/rsa.h>

/* re-calculate the decryption key `d` for the given key
 * the product of e and d must be congruent to 1, and since we are messing
 * with e to generate our keys, we must re-calculate d */
int key_update_d(RSA *rsa_key);