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

📄 md5_impl.h

📁 跨平台C++基础库
💻 H
字号:

//Adapt from RFC1321 - The MD5 Message-Digest Algorithm

/* MD5.H - header file for MD5C.C
*/

/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.

License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.

License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.
*/

#ifndef MCRT_MD5_IMPL_H
#define MCRT_MD5_IMPL_H

#include "MCRT/mcommon.h"

/* MD5 context. */
struct MD5_CTX{
    unsigned int    state[4];   /* state (ABCD) */
    unsigned int    count[2];   /* number of bits, modulo 2^64 (lsb first) */
    unsigned char   buffer[64]; /* input buffer */
};

void MD5_init( MD5_CTX* pMD5_CTX );
void MD5_update( MD5_CTX* pMD5_CTX, unsigned char* pStr, unsigned int lenStr );
void MD5_final( MD5_CTX* pMD5_CTX, unsigned char output[16] );

#endif //end MCRT_MD5_IMPL_H

⌨️ 快捷键说明

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