aboutsummaryrefslogtreecommitdiff
path: root/key_update.h
diff options
context:
space:
mode:
Diffstat (limited to 'key_update.h')
-rw-r--r--key_update.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/key_update.h b/key_update.h
index 66512b6..ff6271d 100644
--- a/key_update.h
+++ b/key_update.h
@@ -1,3 +1,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);