fix: make hmac_md5.c issue

This commit is contained in:
zhangsz
2025-03-06 20:33:08 +08:00
parent 1f4188893b
commit af262f265f
3 changed files with 2 additions and 31 deletions

View File

@@ -6,14 +6,9 @@
*/
#include <string.h>
#include "md5.h"
// #include "md5.h"
#include "radius_md5.h"
#ifndef _T_BYTE
#define _T_BYTE
typedef unsigned char BYTE;
#endif
const int blocksize = 64;
const int hashsize = 16;

View File

@@ -1,21 +0,0 @@
#ifndef SQUID_MD5_H
#define SQUID_MD5_H
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef struct SquidMD5Context {
uint32_t buf[4];
uint32_t bytes[2];
uint32_t in[16];
}SquidMD5_CTX;
void SquidMD5Init(struct SquidMD5Context *context);
void SquidMD5Update(struct SquidMD5Context *context, const void *buf, unsigned len);
void SquidMD5Final(uint8_t digest[16], struct SquidMD5Context *context);
void SQUID_MD5Transform(uint32_t buf[4], uint32_t const in[16]); // void SquidMD5Transform(uint32_t buf[4], uint32_t const in[16]);
#define SQUID_MD5_DIGEST_LENGTH 16
#endif /** SQUID_MD5_H */

View File

@@ -37,10 +37,7 @@
#ifndef _RADIUS_MD5_H
#define _RADIUS_MD5_H
#ifndef _T_BYTE
#define _T_BYTE
typedef unsigned char BYTE;
#endif
typedef unsigned char BYTE;
/* typedef a 32-bit type */
//typedef unsigned long int UINT4;