chardwarecrypto.cpp
来自「ecom symbian os application development」· C++ 代码 · 共 36 行
CPP
36 行
//
// CHardwareCrypto.cpp
//
#include "CHardwareCrypto.h"
// Construction and destruction functions
CHardwareCrypto* CHardwareCrypto::NewL()
{
CHardwareCrypto* self=new(ELeave) CHardwareCrypto();
CleanupStack::PushL(self);
self->ConstructL();
CleanupStack::Pop();
return self;
}
CHardwareCrypto::~CHardwareCrypto()
{}
CHardwareCrypto::CHardwareCrypto()
{}
void CHardwareCrypto::ConstructL()
{}
void CHardwareCrypto::EncryptL(const TDesC8& aPlaintext, const TDesC8& /*aKey*/, TDes8& aCiphertext, CCryptoInterface::TAlgorithm /*aAlg*/)
{// Do nothing crytographic here (it's an example). Just return what's passed in.
aCiphertext = aPlaintext;
}
void CHardwareCrypto::DecryptL(const TDesC8& aCiphertext, const TDesC8& /*aKey*/, TDes8& aPlaintext, CCryptoInterface::TAlgorithm /*aAlg*/)
{// Do nothing crytographic here (it's an example). Just return what's passed in.
aPlaintext = aCiphertext;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?