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

📄 md5mac.h

📁 300中加密方法
💻 H
字号:
#ifndef CRYPTOPP_MD5MAC_H
#define CRYPTOPP_MD5MAC_H

#include "iterhash.h"

NAMESPACE_BEGIN(CryptoPP)

class MD5MAC : public IteratedHash<word32>, public MessageAuthenticationCode
{
public:
	MD5MAC(const byte *userKey);
	void Final(byte *mac);
	unsigned int DigestSize() const {return DIGESTSIZE;}

	enum {KEYLENGTH=16, DIGESTSIZE = 16, DATASIZE = 64};

private:
	void Init();
	void HashBlock(const word32 *input);
	static void CorrectEndianess(word32 *out, const word32 *in, unsigned int byteCount);
	static void Transform (word32 *buf, const word32 *in, const word32 *key);

	static const word32 T[12];
	SecBlock<word32> key;
};

NAMESPACE_END

#endif

⌨️ 快捷键说明

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