Exemplo n.º 1
0
   bool step()
    {
     random.fill(Range(key));
     random.fill(Range(src));
     
     cipher1.key(key.getPtr());
     cipher2.key(key.getPtr());

     ApplyBlockCipher(cipher1,src.getPtr(),dst1.getPtr(),blocks);
     ApplyBlockCipher(cipher2,src.getPtr(),dst2.getPtr(),blocks);
     
#if 0
     
     Printf(Con,"\n#;\n\n#;\n",PrintDump(Range(dst1)),PrintDump(Range(dst2)));
     
#endif     
     
     return Range(dst1).equal(Range(dst2));
    }
Exemplo n.º 2
0
Arquivo: dump.cpp Projeto: HLH15/24783
int main(int argc,char *argv[])
{
	if(2==argc)
	{
		PrintDump(argv[1]);
	}
	else
	{
		printf("Usage: dump.exe <filename>\n");
		return 0;
	}
}