diff options
| author | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-04-29 06:53:06 +0000 |
|---|---|---|
| committer | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-04-29 06:53:06 +0000 |
| commit | 37b4a4e2d0ad88e80da69614aa5b2d89aca0a1e1 (patch) | |
| tree | af0b99c93ce16330d460a171ac4ed8d7b986c781 /gnu/java/security/key/rsa/RSAKeyPairX509Codec.java | |
| parent | 21a158af006d84e924da49403ee95fea418ce856 (diff) | |
| download | classpath-37b4a4e2d0ad88e80da69614aa5b2d89aca0a1e1.tar.gz | |
2006-04-29 Raif S. Naffah <raif@swiftdsl.com.au>
* gnu/java/security/provider/Gnu.java (run):
Add "RSA" as an alias to MD5withRSA.
* gnu/java/security/key/rsa/RSAKeyPairX509Codec.java (encodePublicKey):
Always encode a NULL as the value of an algorithm parameters field.
* gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java (log): New field.
(encodePrivateKey): Added trace/log statements.
(decodePrivateKey): Likewise.
* gnu/java/security/key/rsa/RSAKeyPairGenerator.java (log): New field.
(setup): Added trace/log statements.
(generate): Likewise.
* gnu/java/security/key/rsa/GnuRSAPublicKey.java (str): New field.
(toString): New method.
* gnu/java/security/key/rsa/GnuRSAPrivateKey.java (DEBUG): New constant.
(str): New field.
(toString): New method.
* gnu/java/security/key/rsa/GnuRSAKey.java (str): New field.
(getEncoded): Use defaultFormat.
(toString): New method.
* gnu/java/security/key/dss/DSSKey.java (toString):
Include defaultFormat in string.
* gnu/java/security/jce/sig/RSAKeyFactory.java (engineGeneratePublic):
Break if successfully decoded public key.
(engineGeneratePrivate): Break if successfully decoded private key.
Diffstat (limited to 'gnu/java/security/key/rsa/RSAKeyPairX509Codec.java')
| -rw-r--r-- | gnu/java/security/key/rsa/RSAKeyPairX509Codec.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java b/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java index 1c362784b..882d9c7b2 100644 --- a/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java +++ b/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java @@ -128,8 +128,9 @@ public class RSAKeyPairX509Codec DERValue derN = new DERValue(DER.INTEGER, n); DERValue derE = new DERValue(DER.INTEGER, e); - ArrayList algorithmID = new ArrayList(1); + ArrayList algorithmID = new ArrayList(2); algorithmID.add(derOID); + algorithmID.add(new DERValue(DER.NULL, null)); DERValue derAlgorithmID = new DERValue(DER.CONSTRUCTED | DER.SEQUENCE, algorithmID); |
