PKIFCryptoPPRawContext.cpp

Go to the documentation of this file.
00001 
00010 #include "PKIFCryptoPPRawContext.h"
00011 
00012 #include "cryptlib.h"
00013 #include "PKIFKeyMaterial.h"
00014 
00015 using namespace CryptoPP;
00016 
00024 CPKIFCryptoPPRawContext::CPKIFCryptoPPRawContext()
00025 :m_ctx(0),m_hashCtx(0),m_rawKey(0),m_iv(0) 
00026 {   
00027     m_keyLen = 0;
00028     int m_ivLen = 0;
00029     this->m_keyAlgorithm = PKIFCRYPTO::AES;
00030     this->m_keyMode = PKIFCRYPTO::CBC;
00031 }
00039 CPKIFCryptoPPRawContext::~CPKIFCryptoPPRawContext()
00040 {
00041     if(m_ctx) {
00042         delete m_ctx;
00043         m_ctx = 0;
00044     }
00045     if(m_hashCtx) {
00046         delete m_hashCtx;
00047         m_hashCtx = 0;
00048     }
00049     if(m_rawKey) {
00050         delete[] m_rawKey;
00051         m_rawKey = 0;
00052     }
00053     if(m_iv) {
00054         delete[] m_iv;
00055         m_iv = 0;
00056     }
00057 }

Generated on Mon Nov 15 11:15:54 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6