예제 #1
0
void Boot::boot_run() const
 {
  DynArray<unsigned> boot;
  
  buildBoot(boot,Range(&__std_boot_beg,&__std_boot_end));

  __std_boot(boot.getPtr(),boot.getPtr()+boot.getLen());
 }
예제 #2
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));
    }