00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "Cryptage.h"
00013 #include <stdio.h>
00014
00015 Cryptage::Cryptage(char *pKey, int iSizeKey)
00016 {
00017 SizeKey = iSizeKey;
00018 Key = NULL;
00019
00020 if(pKey)
00021 SetKey(pKey, iSizeKey);
00022
00023 SizeData = 0;
00024 Data = NULL;
00025 }
00026
00027 Cryptage::~Cryptage()
00028 {
00029 if(Key)
00030 delete [] Key;
00031 if(Data)
00032 delete [] Data;
00033 }
00034
00035 void Cryptage::SetKey(char *pKey, int iSizeKey)
00036 {
00037
00038 }
00039
00040 void Cryptage::Crypt(char *pBuffer, int iSize, int iMode)
00041 {
00042
00043 }
00044
00045 void Cryptage::Encrypt(char *pBuffer, int iSize)
00046 {
00047
00048 }
00049
00050 void Cryptage::Decrypt(char *pBuffer, int iSize)
00051 {
00052
00053 }
00054