?? digest.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 + -