Location:
Search - CRijndael
Search list
Description: cRijndael - Advanced Encryption Standard (AES)-cRijndael-Advanced Encryption Standard (AES)
Platform: |
Size: 74922 |
Author: 石广鑫 |
Hits:
Description: cRijndael - Advanced Encryption Standard (AES)-cRijndael-Advanced Encryption Standard (AES)
Platform: |
Size: 74752 |
Author: 石广鑫 |
Hits:
Description: AES算法,实现对文件加密。包含密码学课程报告
class CRijndael
{
private:
int Nk,Nr,round
long Total_Round,Cur_Round
char *SourceFileName,*TargetFileName
CString source,*target,save
CFile Source,Target
byte (* State)[4],*w[4],*key[4]
public:
CString ErrorMessage
CRijndael()
virtual ~CRijndael()
bool EncrypFile()
bool DecrypFile()
CString DecrypStr()
CString EncrypStr()
bool SetFileName(CString SFileName,CString TFileName)
bool SetString(CString sour,CString &targ)
bool SetVariable(int k,int r,CString skey)
int GetCurPos()
private:
void SubBytes()
void ShiftRows()
void MixColumns()
byte Multi(byte a,byte b)
void AddRoundKey()
void KeyExpansion()
void InvShiftRows()
void InvSubBytes()
void InvMixColumns()
void Encryption()
void Decryption()
} -AES algorithm to realize the files are encrypted. Course report contains the password 。
class CRijndael {private: int Nk, Nr, round long Total_Round, Cur_Round char* SourceFileName,* TargetFileName CString source,* target, save CFile Source, Target byte (* State) [4] ,* w [4],* key [4] public: CString ErrorMessage CRijndael () virtual ~ CRijndael () bool EncrypFile () bool DecrypFile () CString DecrypStr () CString EncrypStr () bool SetFileName (CString SFileName, CString TFileName) bool SetString (CString sour, CString & targ) bool SetVariable (int k, int r, CString skey) int GetCurPos () private: void SubBytes () void ShiftRows () void MixColumns () byte Multi (byte a, byte b) void AddRoundKey () void KeyExpansion () void InvShiftRows () void InvSubBytes () void InvMixColumns () void Encryption () void Decryption () }
Platform: |
Size: 286720 |
Author: fff |
Hits: