|
From: Pelle B. <pe...@us...> - 2004-03-19 22:31:17
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19769/src/java/org/neuclear/commons/crypto Modified Files: CryptoTools.java Log Message: Changes in the XMLSignature class, which is now Abstract there are currently 3 implementations for: - Enveloped - DataObjects - (Enveloping) - Any for interop testing mainly. Index: CryptoTools.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/CryptoTools.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** CryptoTools.java 18 Mar 2004 21:31:26 -0000 1.17 --- CryptoTools.java 19 Mar 2004 22:21:24 -0000 1.18 *************** *** 2,5 **** --- 2,11 ---- * $Id$ * $Log$ + * Revision 1.18 2004/03/19 22:21:24 pelle + * Changes in the XMLSignature class, which is now Abstract there are currently 3 implementations for: + * - Enveloped + * - DataObjects - (Enveloping) + * - Any for interop testing mainly. + * * Revision 1.17 2004/03/18 21:31:26 pelle * Some fixups in SignedInfo *************** *** 724,743 **** public static KeyPairGenerator getTinyRSAKeyPairGenerator() throws NoSuchAlgorithmException { ! if (kg == null) { ! kg = KeyPairGenerator.getInstance("RSA"); ! kg.initialize(512, new SecureRandom("Bear it all with NeuDist".getBytes())); } ! return kg; } public static KeyPairGenerator getTinyDSAKeyPairGenerator() throws NoSuchAlgorithmException { ! if (kg == null) { ! kg = KeyPairGenerator.getInstance("DSA"); ! kg.initialize(512, new SecureRandom("Bear it all with NeuDist".getBytes())); } ! return kg; } --- 730,749 ---- public static KeyPairGenerator getTinyRSAKeyPairGenerator() throws NoSuchAlgorithmException { ! if (tkg == null) { ! tkg = KeyPairGenerator.getInstance("RSA"); ! tkg.initialize(512, new SecureRandom("Bear it all with NeuDist".getBytes())); } ! return tkg; } public static KeyPairGenerator getTinyDSAKeyPairGenerator() throws NoSuchAlgorithmException { ! if (tdkg == null) { ! tdkg = KeyPairGenerator.getInstance("DSA"); ! tdkg.initialize(512, new SecureRandom("Bear it all with NeuDist".getBytes())); } ! return tdkg; } *************** *** 868,871 **** --- 874,879 ---- private static KeyPairGenerator kg; private static KeyPairGenerator dkg; + private static KeyPairGenerator tkg; + private static KeyPairGenerator tdkg; public static final String DEFAULT_PBE_ALGORITHM = "PBEWithSHAAnd3-KeyTripleDES-CBC"; public static final String DEFAULT_JCE_PROVIDER = "BC"; |