[commit-cp] [SCM] UNNAMED PROJECT branch, master, updated. a09acb2a1f9dc481c980ab38e19f510581e43ea8

Andrew John Hughes <[email protected]> Tue, 10 Feb 2015 02:02:34 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".

The branch, master has been updated
       via  a09acb2a1f9dc481c980ab38e19f510581e43ea8 (commit)
       via  55c5097f9ce57cb5ebdbec6383c6c89ad4933348 (commit)
      from  92f6e5177fbd0c8bfdbecce4b5704d981f4988bb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a09acb2a1f9dc481c980ab38e19f510581e43ea8
Author: Andrew John Hughes <[email protected]>
Date:   Tue Feb 10 02:01:19 2015 +0000

    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  <[email protected]>
    
    	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.

commit 55c5097f9ce57cb5ebdbec6383c6c89ad4933348
Author: Andrew John Hughes <[email protected]>
Date:   Mon Feb 2 15:28:40 2015 +0000

    PR64881: KeyPairGenerator.genKeyPair() ends up calling the default generateKeyPair method which returns a DSA generator
    
    2015-01-30  Andrew John Hughes  <[email protected]>
    
    	PR classpath/64881
    	* NEWS: Updated.
    	* java/security/KeyPairGenerator.java:
    	(genKeyPair()): Document properly. Call original
    	method, generateKeyPair().
    	(generateKeyPair()): Document properly. Use provider
    	and algorithm values if set rather than just defaulting
    	to GNU and DSA.
    
    Signed-off-by: Andrew John Hughes <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |   70 ++++++++
 NEWS                                               |    3 +
 .../security/jce/sig/KeyPairGeneratorAdapter.java  |   58 ++++++-
 gnu/java/security/key/IKeyPairGenerator.java       |   17 ++-
 gnu/java/security/key/dss/DSSKey.java              |    2 +-
 gnu/java/security/key/dss/DSSKeyPairGenerator.java |  180 ++++++++++++--------
 gnu/java/security/key/rsa/GnuRSAKey.java           |    2 +-
 gnu/java/security/key/rsa/RSAKeyPairGenerator.java |   80 +++++++--
 gnu/javax/crypto/key/dh/GnuDHKey.java              |    4 +-
 gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java |  122 +++++++++-----
 gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.java |  172 ++++++++++++-------
 java/security/KeyPairGenerator.java                |   65 +++++--
 12 files changed, 556 insertions(+), 219 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT