md5c.c (934f5f33065a9946edc034addcc5d63c4bafab32) | md5c.c (c1087c13240442926a34afa825b4dd3993868549) |
---|---|
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 * $Id: md5c.c,v 1.11 1998/03/27 10:23:00 phk Exp $ | 25 * $Id: md5c.c,v 1.12 1998/03/29 11:54:52 phk Exp $ |
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 --- 5 unchanged lines hidden (view full) --- 39#include <sys/md5.h> 40 41 42#ifdef KERNEL 43#define memset(x,y,z) bzero(x,z); 44#define memcpy(x,y,z) bcopy(y, x, z) 45#endif 46 | 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 --- 5 unchanged lines hidden (view full) --- 39#include <sys/md5.h> 40 41 42#ifdef KERNEL 43#define memset(x,y,z) bzero(x,z); 44#define memcpy(x,y,z) bcopy(y, x, z) 45#endif 46 |
47#ifdef i386 | 47#ifdef __i386 |
48#define Encode memcpy 49#define Decode memcpy | 48#define Encode memcpy 49#define Decode memcpy |
50#else /* i386 */ | 50#else /* __i386 */ |
51 52/* 53 * Encodes input (u_int32_t) into output (unsigned char). Assumes len is 54 * a multiple of 4. 55 */ 56 | 51 52/* 53 * Encodes input (u_int32_t) into output (unsigned char). Assumes len is 54 * a multiple of 4. 55 */ 56 |
57/* XXX not prototyped, and not compatible with memcpy(). */ |
|
57static void 58Encode (output, input, len) 59 unsigned char *output; 60 u_int32_t *input; 61 unsigned int len; 62{ 63 unsigned int i, j; 64 --- 277 unchanged lines hidden --- | 58static void 59Encode (output, input, len) 60 unsigned char *output; 61 u_int32_t *input; 62 unsigned int len; 63{ 64 unsigned int i, j; 65 --- 277 unchanged lines hidden --- |