Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/mty-makai/mty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 262 by notanpe, Sat Jul 2 05:36:54 2011 UTC revision 263 by notanpe, Mon Jul 4 09:42:05 2011 UTC
# Line 33  Line 33 
33  #include "scoreboard.h"  #include "scoreboard.h"
34  #include "synth.h"  #include "synth.h"
35  #include "util.h"  #include "util.h"
36    #include "makai.h"
37    
38  #ifdef WIN32  #ifdef WIN32
39  /* 優先度 */  /* 優先度 */
# Line 788  main(int argc, char *argv[]) Line 789  main(int argc, char *argv[])
789     if ( fixedSalt[0] != '\0' ) {     if ( fixedSalt[0] != '\0' ) {
790      printf( "全空間モード (salt:%c%c)\n", fixedSalt[0], fixedSalt[1] );      printf( "全空間モード (salt:%c%c)\n", fixedSalt[0], fixedSalt[1] );
791     }     }
792    #ifdef KEYLOG
793       if ( keyLog == MAKAI_TRUE ) {
794        printf( "検索したキー空間のロギング\n" );
795        initMutexKeylog();
796       }
797    #endif /* KEYLOG */
798  #ifdef SPECIAL  #ifdef SPECIAL
799     dispSpecial();     dispSpecial();
800  #else /* SPECIAL */  #else /* SPECIAL */
# Line 838  main(int argc, char *argv[]) Line 845  main(int argc, char *argv[])
845    /* コードをメモリに貼り付ける */    /* コードをメモリに貼り付ける */
846    code = scoreboard_map(sfp);    code = scoreboard_map(sfp);
847    
848    /* キーの初期化 */    /* salt を設定するためにダミーのキーを作成 (ここってロックいるのか ?) */
849    WaitForSingleObject(mutex_key, INFINITE);    WaitForSingleObject(mutex_key, INFINITE);
850    srand(usec());    key.key[1] = 'z' + 1;
851    key_init(&key);    key.key[2] = 'z' + 1;
852    ReleaseMutex(mutex_key);    ReleaseMutex(mutex_key);
853    set_salt(code, crypt64_descs[0], key.key);    set_salt(code, crypt64_descs[0], key.key);
854    

Legend:
Removed from v.262  
changed lines
  Added in v.263

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26