From 0e1dff2be71ceb2ab60fb9e7b7e474e2f3810b6d Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 18 Jan 2020 17:47:24 -0600 Subject: [PATCH] RSA: fix MSBLOB encoding error --- phpseclib/Crypt/RSA/Formats/Keys/MSBLOB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RSA/Formats/Keys/MSBLOB.php b/phpseclib/Crypt/RSA/Formats/Keys/MSBLOB.php index deb9467b..60dff682 100644 --- a/phpseclib/Crypt/RSA/Formats/Keys/MSBLOB.php +++ b/phpseclib/Crypt/RSA/Formats/Keys/MSBLOB.php @@ -200,7 +200,7 @@ abstract class MSBLOB $key.= strrev($primes[2]->toBytes()); $key.= strrev($exponents[1]->toBytes()); $key.= strrev($exponents[2]->toBytes()); - $key.= strrev($coefficients[1]->toBytes()); + $key.= strrev($coefficients[2]->toBytes()); $key.= strrev($d->toBytes()); return Base64::encode($key);