01: /* $Id: MessageDigestSpi.java,v 1.1 2004/01/19 02:03:51 rgrimm Exp $
02: *
03: * Copyright (C) 1995-1999 The Cryptix Foundation Limited.
04: * All rights reserved.
05: *
06: * Use, modification, copying and distribution of this software is subject
07: * the terms and conditions of the Cryptix General Licence. You should have
08: * received a copy of the Cryptix General Licence along with this library;
09: * if not, you can download a copy from http://www.cryptix.org/ .
10: */
11: package java.security;
12:
13: /**
14: * JDK 1.1 compatibility layer: our hashes derive from the MessageDigestSpi
15: * class which is not present in JDK 1.1.
16: *
17: * In JDK 1.2, MessageDigest extends MessageDigestSpi but in JDK 1.1,
18: * MessageDigestSpi extends MessageDigest. This is transparent, except
19: * for the fact that the 1.1 MessageDigest constructor needs a String
20: * representing the algorithm name.
21: *
22: * For now we simply set the empty string (""). Should this become a
23: * problem,we can revert to 'compatibility mode' and derive our hashes
24: * from MessageDigest instead of from MessageDigestSpi.
25: *
26: * @version $Revision: 1.1 $
27: * @author Jeroen C. van Gelderen (gelderen@cryptix.org)
28: */
29: public abstract class MessageDigestSpi extends MessageDigest {
30: public MessageDigestSpi() {
31: super (""); // empty string (see above)
32: }
33: }
|