From: Andre Noll Date: Sun, 7 May 2023 15:16:52 +0000 (+0200) Subject: openssl: Assign bignums in canonical order. X-Git-Tag: v0.7.3~9^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1065059dac18aa6bf2f86c22b64543b98bc8e968;p=paraslash.git openssl: Assign bignums in canonical order. The order of the bignums stored in the private key is n, e, d, iqmp, p, q. We read the bignums in this order, so assign the members of the RSA structure in the same order. This does not really matter, but still.. --- diff --git a/openssl.c b/openssl.c index 40980799..f696cd9e 100644 --- a/openssl.c +++ b/openssl.c @@ -216,11 +216,11 @@ static int read_openssh_private_key(const unsigned char *blob, rsa->n = n; rsa->e = e; rsa->d = d; + rsa->iqmp = iqmp; rsa->p = p; rsa->q = q; rsa->dmp1 = dmp1; rsa->dmq1 = dmq1; - rsa->iqmp = iqmp; #endif *result = rsa; ret = 1;