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

📄 digestopensslimpl.h

📁 这是一个基于VS2003开发的数据加密和解密的程序
💻 H
字号:
#ifndef _LUCID_HASH_DIGESTOPENSSLIMPL_H_
#define _LUCID_HASH_DIGESTOPENSSLIMPL_H_

#include "ShareLib.h"

#include "DigestImplBase.h"
#include "openssl/evp.h"

//#include "Lucid/System/Thread/Thread.h"

namespace Lucid {

namespace Encryption {

//! \class TDigestOpenSslImpl
/*!
	\brief Digest implementation using OpenSSL
*/
class TDigestOpenSslImpl : public TDigestImplBase {
public:
	//! Constructor
	
	TDigestOpenSslImpl(THashAlgorithm algorithm = NO_DIGEST);

	//! Destructor
	/*!
	*/
	virtual ~TDigestOpenSslImpl();

	/*!
		\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
	*/
	virtual void Digest(const char *inputm, unsigned char* outputd, unsigned int inputm_len, unsigned int &outputd_len);
	
private:
	const EVP_MD *GetAlgorithmType() const;
	EVP_MD_CTX mDigestCtx;
	

//	Lucid::System::Thread::TThreadMutex mMutex;
};

}

}

#endif	// _LUCID_HASH_DIGESTOPENSSLIMPL_H_

⌨️ 快捷键说明

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