⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md5_mac.h

📁 mobile ip 在linux下的一种实现
💻 H
字号:
/* $Id: md5_mac.h,v 1.2 2001/07/12 14:38:09 jm Exp $ * MD5 hash implementation and interface functions * * Dynamic hierarchial IP tunnel * Copyright (C) 1998-2001, Dynamics group * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. See README and COPYING for * more details. */#ifndef MD5_MAC_H#define MD5_MAC_H#include "owntypes.h"#define MD5_MAC_LEN 16struct MD5Context {	u32 buf[4];	u32 bits[2];	unsigned char in[64];};void MD5Init(struct MD5Context *context);void MD5Update(struct MD5Context *context, unsigned char const *buf,	       unsigned len);void MD5Final(unsigned char digest[16], struct MD5Context *context);void MD5Transform(u32 buf[4], u32 const in[16]);/* * This is needed to make RSAREF happy on some MS-DOS compilers. */typedef struct MD5Context MD5_CTX;void md5_mac(unsigned char *key, unsigned int key_len,             unsigned char *data, unsigned int data_len,             unsigned char *mac);void hmac_md5(unsigned char *key, unsigned int key_len,	      unsigned char *data, unsigned int data_len,	      unsigned char *mac);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -