digest.h
来自「这是一个基于VS2003开发的数据加密和解密的程序」· C头文件 代码 · 共 74 行
H
74 行
/*!
\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 + =
减小字号Ctrl + -
显示快捷键?