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

📄 digest.h

📁 这是一个基于VS2003开发的数据加密和解密的程序
💻 H
字号:
/*!
	\file Digest.h
	\author Jackson
	\date 13/1/2005
*/

#ifndef _LUCID_HASH_DIGEST_H_
#define _LUCID_HASH_DIGEST_H_

#ifdef _MSC_VER
#pragma once
#endif

#include "ShareLib.h"

#include "DigestImplBase.h"
#include "EncodeAlgorithm.h"

namespace Lucid {

namespace Encryption {

//! \class TDigest
/*!
	\brief Digest interface class
*/
class LUCID_ENCRYPTION_API TDigest {

public:

	//! Constructor
	/*!
		\param algorithm encode algorithm used
	*/
	TDigest( THashAlgorithm algorithm = NO_DIGEST);

	//! Copy Constructor
	/*!
		\param encoder encoder to be copied
	*/
	TDigest(const TDigest& digest);

	//! Destructor
	/*!
	*/
	~TDigest();

	/*!
		\brief encode input byte array
		\param input input byte array
		\param output output byte array
		\param input_len length of input array
		\param output_len length of output array
	*/
	void Digest(const char *inputm, unsigned char* outputd, unsigned int inputm_len, unsigned int &outputd_len)
	{
		mDigestImpl->Digest(inputm, outputd, inputm_len, outputd_len);
	}

	
	THashAlgorithm GetAlgorithm() const 
	{
		return mDigestImpl->GetAlgorithm();
	}

private:
	TDigestImplBase *mDigestImpl;
};

}

}

#endif	// _LUCID_HASH_DIGEST_H_

⌨️ 快捷键说明

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