www.pudn.com > TestAes.rar > TestAes.cpp


// TestAes.cpp : Defines the entry point for the console application. 
// 
 
#include "stdafx.h" 
#include "Aes1.h" 
#include  
#include 
#include 
 #include  
   
 
 
int main(int argc, char* argv[]) 
{   char s[1000]; 
      
	  
  SYSTEMTIME  begin,end; 
    
 
 
   
    
   
  
     
	//BYTE keys[16]= 
	//	{0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff}; 
	  BYTE input[] = {0x00, 0x11, 0x22, 0x33, 0x44,0x55,  
		 0x66, 0x77,0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};  
        
	 BYTE keyBytes[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,  
      0x07,0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,0x10, 0x11,  
      0x12, 0x13, 0x14, 0x15, 0x16, 0x17}; 
 
//	AES aes( AES::BIT192 , keys); 
	 AES  aes(AES::BIT192, keyBytes); 
      
//	BYTE* input=new BYTE[1024];	 
	BYTE* output=new BYTE[1024]; 
	  
  
	//sprintf((char*)input,"Hello,world"); 
	 // for(int i=0;i