?? digestimpfactory.h
字號:
/*!
\file DigestImplFactory.h
\author yangde
\date 24/6/2006
*/
#ifndef _LUCID_ENCRYPTION_DIGESTIMPLFACTORY_H_
#define _LUCID_ENCRYPTION_DUGESTIMPLFACTORY_H_
#include "ShareLib.h"
#include "EncodeAlgorithm.h"
namespace Lucid {
namespace Encryption {
class TDigestImplBase;
//! \class TDImplFactory
/*!
\brief Factory class create encoder implementation
*/
class TEncoderImplFactory {
public:
/*!
\brief get encoder implementation factory singleton
*/
static TEncoderImplFactory& GetSingleton() {
static TEncoderImplFactory factory;
return factory;
}
/*!
\brief create encoder implementation
\param key key for encryption
\param key_length length of key
\param iv initial vector encryption
\param iv_length length of initial vector
\param algorithm encode algorithm used
*/
TEncoderImplBase* CreateEncoderImpl(const unsigned char* key, unsigned int key_length, const unsigned char* iv = 0, unsigned int iv_length = 0, TEncodeAlgorithm algorithm = NO_ENCODE);
private:
TEncoderImplFactory() {}
TEncoderImplFactory(const TEncoderImplFactory&);
TEncoderImplFactory& operator=(const TEncoderImplFactory&);
~TEncoderImplFactory() {}
};
#define ENCODER_IMPL_FACTORY TEncoderImplFactory::GetSingleton()
}
}
#endif // _LUCID_ENCRYPTION_ENCODERIMPLFACTORY_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -