From 1065059dac18aa6bf2f86c22b64543b98bc8e968 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 7 May 2023 17:16:52 +0200 Subject: [PATCH] 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.. --- openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2