md5c.c (50476) | md5c.c (55206) |
---|---|
1/* 2 * MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm 3 * 4 * Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All 5 * rights reserved. 6 * 7 * License to copy and use this software is granted provided that it 8 * is identified as the "RSA Data Security, Inc. MD5 Message-Digest --- 8 unchanged lines hidden (view full) --- 17 * RSA Data Security, Inc. makes no representations concerning either 18 * the merchantability of this software or the suitability of this 19 * software for any particular purpose. It is provided "as is" 20 * without express or implied warranty of any kind. 21 * 22 * These notices must be retained in any copies of any part of this 23 * documentation and/or software. 24 * | 1/* 2 * MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm 3 * 4 * Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All 5 * rights reserved. 6 * 7 * License to copy and use this software is granted provided that it 8 * is identified as the "RSA Data Security, Inc. MD5 Message-Digest --- 8 unchanged lines hidden (view full) --- 17 * RSA Data Security, Inc. makes no representations concerning either 18 * the merchantability of this software or the suitability of this 19 * software for any particular purpose. It is provided "as is" 20 * without express or implied warranty of any kind. 21 * 22 * These notices must be retained in any copies of any part of this 23 * documentation and/or software. 24 * |
25 * $FreeBSD: head/lib/libmd/md5c.c 50476 1999-08-28 00:22:10Z peter $ | 25 * $FreeBSD: head/lib/libmd/md5c.c 55206 1999-12-29 05:07:58Z peter $ |
26 * 27 * This code is the same as the code published by RSA Inc. It has been 28 * edited for clarity and style only. 29 */ 30 31#include <sys/types.h> 32 | 26 * 27 * This code is the same as the code published by RSA Inc. It has been 28 * edited for clarity and style only. 29 */ 30 31#include <sys/types.h> 32 |
33#ifdef KERNEL | 33#ifdef _KERNEL |
34#include <sys/systm.h> 35#else 36#include <string.h> 37#endif 38 39#include <sys/md5.h> 40 41static void MD5Transform __P((u_int32_t [4], const unsigned char [64])); 42 | 34#include <sys/systm.h> 35#else 36#include <string.h> 37#endif 38 39#include <sys/md5.h> 40 41static void MD5Transform __P((u_int32_t [4], const unsigned char [64])); 42 |
43#ifdef KERNEL | 43#ifdef _KERNEL |
44#define memset(x,y,z) bzero(x,z); 45#define memcpy(x,y,z) bcopy(y, x, z) 46#endif 47 48#ifdef i386 49#define Encode memcpy 50#define Decode memcpy 51#else /* i386 */ --- 291 unchanged lines hidden --- | 44#define memset(x,y,z) bzero(x,z); 45#define memcpy(x,y,z) bcopy(y, x, z) 46#endif 47 48#ifdef i386 49#define Encode memcpy 50#define Decode memcpy 51#else /* i386 */ --- 291 unchanged lines hidden --- |