- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/security/MessageDigest.java (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/security/MessageDigest.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 1 2 /* MessageDigest.java --- The message digest interface. 2 Copyright (C) 1999 Free Software Foundation, Inc.3 Copyright (C) 1999 Free Software Foundation, Inc. 3 4 4 5 This file is part of GNU Classpath. … … 41 42 { 42 43 private String algorithm; 43 privateProvider provider;44 Provider provider; 44 45 private byte[] lastDigest; 45 46 … … 64 65 @return a MessageDigest representing the desired algorithm 65 66 66 @exception NoSuchAlgorithmException if the algorithm is not implemented by providers 67 @exception NoSuchAlgorithmException if the algorithm is not implemented by 68 providers 67 69 */ 68 70 public static MessageDigest getInstance(String algorithm) … … 70 72 { 71 73 Provider[] p = Security.getProviders(); 72 String name = "MessageDigest." + algorithm;73 74 74 for (int i = 0; i < p.length; i++) 75 75 { 76 String classname = p[i].getProperty(name); 77 if (classname != null) 78 return getInstance(classname, algorithm, p[i]); 76 try 77 { 78 return getInstance(algorithm, p[i]); 79 } 80 catch (NoSuchAlgorithmException ignored) {} 79 81 } 80 82 -
Property cvs2svn:cvs-rev
changed from
