aboutsummaryrefslogtreecommitdiff
path: root/key_update.h
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-03-11 17:40:01 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-03-11 17:40:01 +1300
commit2b2ad2c10770c6a864f3ada1e2803ed72c8dfa1b (patch)
tree7c1f729554d45bc6998fd869e4164b7728988a56 /key_update.h
parent98bc6a685212cb6c8a3fd853545352da8f30549f (diff)
downloadsand-leek-2b2ad2c10770c6a864f3ada1e2803ed72c8dfa1b.tar.xz
Move comments to headers where applicable
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);