Browse Source

Use bittypes so we work on 64-bit machines.

OPENBSD_2_0
millert 28 years ago
parent
commit
ecfc045234
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/include/md4.h
  2. +3
    -3
      src/include/md5.h

+ 3
- 3
src/include/md4.h View File

@ -1,5 +1,5 @@
/* MD4.H - header file for MD4C.C /* MD4.H - header file for MD4C.C
* $OpenBSD: md4.h,v 1.1 1996/06/03 22:25:54 niklas Exp $
* $OpenBSD: md4.h,v 1.2 1996/09/29 14:53:09 millert Exp $
*/ */
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
@ -27,8 +27,8 @@
#define _MD4_H_ #define _MD4_H_
/* MD4 context. */ /* MD4 context. */
typedef struct MD4Context { typedef struct MD4Context {
unsigned long state[4]; /* state (ABCD) */
unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */
u_int32_t state[4]; /* state (ABCD) */
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */ unsigned char buffer[64]; /* input buffer */
} MD4_CTX; } MD4_CTX;


+ 3
- 3
src/include/md5.h View File

@ -1,5 +1,5 @@
/* MD5.H - header file for MD5C.C /* MD5.H - header file for MD5C.C
* $OpenBSD: md5.h,v 1.1 1996/06/03 22:25:55 niklas Exp $
* $OpenBSD: md5.h,v 1.2 1996/09/29 14:53:10 millert Exp $
*/ */
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
@ -28,8 +28,8 @@ documentation and/or software.
#define _MD5_H_ #define _MD5_H_
/* MD5 context. */ /* MD5 context. */
typedef struct MD5Context { typedef struct MD5Context {
unsigned long state[4]; /* state (ABCD) */
unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */
u_int32_t state[4]; /* state (ABCD) */
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */ unsigned char buffer[64]; /* input buffer */
} MD5_CTX; } MD5_CTX;


Loading…
Cancel
Save