diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-02-10 02:01:19 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-02-10 02:01:19 +0000 |
commit | a09acb2a1f9dc481c980ab38e19f510581e43ea8 (patch) | |
tree | 9d92ed44029bb9fbaa368fa9df681f11bb809e31 /java/util/regex/PatternSyntaxException.java | |
parent | 55c5097f9ce57cb5ebdbec6383c6c89ad4933348 (diff) | |
download | classpath-a09acb2a1f9dc481c980ab38e19f510581e43ea8.tar.gz |
PR64902: Keys returned by KeyPairGenerator don't use standardised algorithm names
PR64904: KeyPairGenerator.genKeyPair() fails if not explicitly initialised
2015-02-02 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/64902
PR classpath/64904
* NEWS: Updated.
* gnu/java/security/jce/sig/KeyPairGeneratorAdapter.java:
(KeyPairGeneratorAdapter(String)): Filter incoming generator
names so all standardised names are handled (e.g. the
DiffieHellman alias for DH.
(generateKeyPair()): Check whether the generator has been
initialized and initialize it with defaults if not.
(getAlgorithm()): Return the standardised name, not the
internal one.
(localiseName(String)): Convert requested standardised
name to the internal equivalent.
* gnu/java/security/key/IKeyPairGenerator.java:
(isInitialized()): New method to check whether the generator
has been initialized.
(getDefaultKeySize()): Return the default key size used
by the generator.
* gnu/java/security/key/dss/DSSKey.java:
(getAlgorithm()): Return standard "DSA" rather than "dsa".
* gnu/java/security/key/dss/DSSKeyPairGenerator.java:
(initialized): Flag to indicate whether the generator has
been initialized or not.
(initLock): Lock to prevent multiple concurrent initializations.
(setup(Map)): Wrap initialization in a lock and set initialized
flag when done.
(isInitialized()): Returns the value of the initialized flag.
(getDefaultKeySize()): Returns the default key size.
* gnu/java/security/key/rsa/GnuRSAKey.java:
(getAlgorithm()): Return standard "RSA" rather than "rsa".
* gnu/java/security/key/rsa/RSAKeyPairGenerator.java:
(initialized): Flag to indicate whether the generator has
been initialized or not.
(initLock): Lock to prevent multiple concurrent initializations.
(setup(Map)): Wrap initialization in a lock and set initialized
flag when done.
(isInitialized()): Returns the value of the initialized flag.
(getDefaultKeySize()): Returns the default key size.
* gnu/javax/crypto/key/dh/GnuDHKey.java:
(getAlgorithm()): Return standard "DH" rather than "dh".
* gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java:
(initialized): Flag to indicate whether the generator has
been initialized or not.
(initLock): Lock to prevent multiple concurrent initializations.
(setup(Map)): Wrap initialization in a lock and set initialized
flag when done.
(isInitialized()): Returns the value of the initialized flag.
(getDefaultKeySize()): Returns the default key size.
* gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.java:
(initialized): Flag to indicate whether the generator has
been initialized or not.
(initLock): Lock to prevent multiple concurrent initializations.
(setup(Map)): Wrap initialization in a lock and set initialized
flag when done.
(isInitialized()): Returns the value of the initialized flag.
(getDefaultKeySize()): Returns the default key size.
Diffstat (limited to 'java/util/regex/PatternSyntaxException.java')
0 files changed, 0 insertions, 0 deletions