aboutsummaryrefslogtreecommitdiff
path: root/key_update.c
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.c
parent98bc6a685212cb6c8a3fd853545352da8f30549f (diff)
downloadsand-leek-2b2ad2c10770c6a864f3ada1e2803ed72c8dfa1b.tar.xz
Move comments to headers where applicable
Diffstat (limited to 'key_update.c')
-rw-r--r--key_update.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/key_update.c b/key_update.c
index 87acafb..493b32d 100644
--- a/key_update.c
+++ b/key_update.c
@@ -2,9 +2,7 @@
#include <openssl/rsa.h>
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-/* 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) {
const BIGNUM *p = NULL;
@@ -66,9 +64,6 @@ key_update_d(RSA *rsa_key) {
#else
-/* 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) {
BIGNUM *gcd = BN_new();