1/* MDDRIVER.C - test driver for MD2, MD4 and MD5
| 1/* MDDRIVER.C - test driver for MD2, MD4 and MD5
|
2 * $Id$
| 2 * $Id: mddriver.c,v 1.3 1997/02/22 15:07:24 peter Exp $
|
3 */ 4 5/* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All 6 rights reserved. 7 8 RSA Data Security, Inc. makes no representations concerning either 9 the merchantability of this software or the suitability of this 10 software for any particular purpose. It is provided "as is" 11 without express or implied warranty of any kind. 12 13 These notices must be retained in any copies of any part of this 14 documentation and/or software. 15 */ 16 17/* The following makes MD default to MD5 if it has not already been 18 defined with C compiler flags. 19 */ 20#ifndef MD
| 3 */ 4 5/* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All 6 rights reserved. 7 8 RSA Data Security, Inc. makes no representations concerning either 9 the merchantability of this software or the suitability of this 10 software for any particular purpose. It is provided "as is" 11 without express or implied warranty of any kind. 12 13 These notices must be retained in any copies of any part of this 14 documentation and/or software. 15 */ 16 17/* The following makes MD default to MD5 if it has not already been 18 defined with C compiler flags. 19 */ 20#ifndef MD
|
21#define MD MD5
| 21#define MD 5
|
22#endif 23
| 22#endif 23
|
| 24#include <sys/types.h> 25
|
24#include <stdio.h> 25#include <time.h> 26#include <string.h> 27#if MD == 2 28#include "md2.h" 29#define MDData MD2Data 30#endif 31#if MD == 4
--- 36 unchanged lines hidden --- | 26#include <stdio.h> 27#include <time.h> 28#include <string.h> 29#if MD == 2 30#include "md2.h" 31#define MDData MD2Data 32#endif 33#if MD == 4
--- 36 unchanged lines hidden --- |