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/jce/sig | |
| 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/jce/sig')
| -rw-r--r-- | gnu/java/security/jce/sig/RSAKeyFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/java/security/jce/sig/RSAKeyFactory.java b/gnu/java/security/jce/sig/RSAKeyFactory.java index fecf54cb8..674e2afb6 100644 --- a/gnu/java/security/jce/sig/RSAKeyFactory.java +++ b/gnu/java/security/jce/sig/RSAKeyFactory.java @@ -84,7 +84,7 @@ public class RSAKeyFactory PublicKey result; try { - result = new RSAKeyPairX509Codec().decodePublicKey(encoded); + return new RSAKeyPairX509Codec().decodePublicKey(encoded); } catch (RuntimeException x) { @@ -131,7 +131,7 @@ public class RSAKeyFactory PrivateKey result; try { - result = new RSAKeyPairPKCS8Codec().decodePrivateKey(encoded); + return new RSAKeyPairPKCS8Codec().decodePrivateKey(encoded); } catch (RuntimeException x) { |
