summaryrefslogtreecommitdiff
path: root/gnu/java/security/key/rsa
diff options
context:
space:
mode:
authorRaif S. Naffah <raif@swiftdsl.com.au>2006-02-10 11:41:24 +0000
committerRaif S. Naffah <raif@swiftdsl.com.au>2006-02-10 11:41:24 +0000
commitfda7520be2fb2c3ca81647164e7f7077844a897c (patch)
tree4377ae7ca7ddad029386f2111d1688d123686f19 /gnu/java/security/key/rsa
parent4919d3bab2c424fa485f2d322efbabc28b5f47d8 (diff)
downloadclasspath-fda7520be2fb2c3ca81647164e7f7077844a897c.tar.gz
2006-02-10 Raif S. Naffah <raif@swiftdsl.com.au>
* gnu/java/security/key/rsa/GnuRSAPrivateKey.java (GnuRSAPrivateKey(9)): Made it public. * gnu/java/security/jce/sig/RSAKeyFactory.java: New file. * gnu/java/security/jce/sig/DSSKeyFactory.java (engineGeneratePublic): Added support for encoded key specifications. (engineGeneratePrivate): Likewise. (engineGetKeySpec): Likewise. (engineTranslateKey): Corrected order of MPIs and use ctors with 5 args.
Diffstat (limited to 'gnu/java/security/key/rsa')
-rw-r--r--gnu/java/security/key/rsa/GnuRSAPrivateKey.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/java/security/key/rsa/GnuRSAPrivateKey.java b/gnu/java/security/key/rsa/GnuRSAPrivateKey.java
index 48d7e7df7..f8acaa50d 100644
--- a/gnu/java/security/key/rsa/GnuRSAPrivateKey.java
+++ b/gnu/java/security/key/rsa/GnuRSAPrivateKey.java
@@ -57,7 +57,7 @@ import java.security.interfaces.RSAPrivateKey;
* Jakob Jonsson and Burt Kaliski.</li>
* </ol>
*
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class GnuRSAPrivateKey extends GnuRSAKey implements PrivateKey,
RSAPrivateCrtKey
@@ -146,9 +146,9 @@ public class GnuRSAPrivateKey extends GnuRSAKey implements PrivateKey,
* @param qInv the Chinese Remainder Theorem coefiicient. A positive integer
* less than <code>p</code>, satisfying <code>q * qInv = 1 (mod p)</code>.
*/
- GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e,
- BigInteger d, BigInteger p, BigInteger q, BigInteger dP,
- BigInteger dQ, BigInteger qInv)
+ public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e,
+ BigInteger d, BigInteger p, BigInteger q,
+ BigInteger dP, BigInteger dQ, BigInteger qInv)
{
super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID
: preferredFormat,