CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Raif S. Naffah <[EMAIL PROTECTED]> 06/02/12 08:57:58
Modified files: gnu/java/security/jce/sig: EncodedKeyFactory.java KeyPairGeneratorAdapter.java gnu/javax/crypto/key/dh: GnuDHKeyPairGenerator.java GnuDHKey.java GnuDHPublicKey.java GnuDHPrivateKey.java gnu/javax/crypto/jce: GnuCrypto.java . : ChangeLog Added files: gnu/javax/crypto/key/dh: DHKeyPairX509Codec.java DHKeyPairPKCS8Codec.java gnu/javax/crypto/jce/sig: DHKeyPairGeneratorSpi.java DHKeyFactory.java Log message: 2006-02-12 Raif S. Naffah <[EMAIL PROTECTED]> * gnu/javax/crypto/key/dh/GnuDHPublicKey.java (GnuDHPublicKey(4)): Call constructor with 5 arguments. (GnuDHPublicKey): New constructor. (getEncoded): Removed. (valueOf): Added support for ASN.1 encoding. (getEncoded(int)): Likewise. (equals): New method. * gnu/javax/crypto/key/dh/GnuDHPrivateKey.java (GnuDHPrivateKey(4)): Call constructor with 5 arguments. (GnuDHPrivateKey(5)): New constructor. (getEncoded): Removed. (valueOf): Added support for ASN.1 encoding. (getEncoded(int)): Likewise. (equals): New method. * gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java (PREFERRED_ENCODING_FORMAT): New constant. (DEFAULT_ENCODING_FORMAT): Likewise. (preferredFormat): New field. (setup): Handle preferred encoding format identifier. (generate): Call constructors with format identifier. * gnu/javax/crypto/key/dh/GnuDHKey.java (defaultFormat): New field. (GnuDHKey): Added an int argument. (getEncoded): New method. (getFormat): New implementation. (getEncoded(int)): New abstract method. * gnu/javax/crypto/key/dh/DHKeyPairX509Codec.java: New file. * gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.java: Likewise. * gnu/javax/crypto/jce/GnuCrypto.java (run): Added mappings for DH key-pair generator and key-factory. * gnu/javax/crypto/jce/sig/DHKeyPairGeneratorSpi.java: New file. * gnu/javax/crypto/jce/sig/DHKeyFactory.java: Likewise. * gnu/java/security/jce/sig/KeyPairGeneratorAdapter.java: Made it public. * gnu/java/security/jce/sig/EncodedKeyFactory.java (invokeConstructor): New method. (getConcreteClass): Likewise. (getConcreteCtor): Likewise. (invokeValueOf): Likewise. (getValueOfMethod): Likewise. (engineGeneratePublic): Add support for DH keys. (engineGeneratePrivate): Likewise. (decodeDHPublicKey(DHPublicKeySpec)): New method. (decodeDHPublicKey(byte[])): Likewise. (decodeDHPrivateKey(DHPrivateKeySpec)): Likewise. (decodeDHPrivateKey(byte[])): Likewise. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/java/security/jce/sig/EncodedKeyFactory.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/GnuDHKey.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/GnuDHPublicKey.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/DHKeyPairX509Codec.java?rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/GnuDHPrivateKey.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.java?rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/jce/GnuCrypto.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/jce/sig/DHKeyPairGeneratorSpi.java?rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/jce/sig/DHKeyFactory.java?rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6339&tr2=1.6340&r1=text&r2=text