We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5078e4 + 482551b commit 0692a71Copy full SHA for 0692a71
crypto/src/crypto/parameters/RsaPrivateCrtKeyParameters.cs
@@ -2,6 +2,7 @@
2
3
using Org.BouncyCastle.Crypto;
4
using Org.BouncyCastle.Math;
5
+using Org.BouncyCastle.Asn1.Pkcs;
6
7
namespace Org.BouncyCastle.Crypto.Parameters
8
{
@@ -36,7 +37,20 @@ public RsaPrivateCrtKeyParameters(
36
37
this.qInv = qInv;
38
}
39
- public BigInteger PublicExponent
40
+ public RsaPrivateCrtKeyParameters(RsaPrivateKeyStructure rsaPrivateKey)
41
+ : this(
42
+ rsaPrivateKey.Modulus,
43
+ rsaPrivateKey.PublicExponent,
44
+ rsaPrivateKey.PrivateExponent,
45
+ rsaPrivateKey.Prime1,
46
+ rsaPrivateKey.Prime2,
47
+ rsaPrivateKey.Exponent1,
48
+ rsaPrivateKey.Exponent2,
49
+ rsaPrivateKey.Coefficient
50
+ )
51
+ { }
52
+
53
+ public BigInteger PublicExponent
54
55
get { return e; }
56
0 commit comments