search.h

来自「破解des算法的程序」· C头文件 代码 · 共 42 行

H
42
字号
/***************************************************************************** * search.h                                                                  * *                         Header file for search.c                          * *                                                                           * *    Written 1998 by Cryptography Research (http://www.cryptography.com)    * *       and Paul Kocher for the Electronic Frontier Foundation (EFF).       * *       Placed in the public domain by Cryptography Research and EFF.       * *  THIS IS UNSUPPORTED FREE SOFTWARE. USE AND DISTRIBUTE AT YOUR OWN RISK.  * *                                                                           * *  IMPORTANT: U.S. LAW MAY REGULATE THE USE AND/OR EXPORT OF THIS PROGRAM.  * *                                                                           * ***************************************************************************** *                                                                           * *   REVISION HISTORY:                                                       * *                                                                           * *   Version 1.0:  Initial release by Cryptography Research to EFF.          * *                                                                           * *****************************************************************************/#ifndef __SEARCH_H#define __SEARCH_Htypedef struct {  /* PARAMETERS DEFINING THE SEARCH (THESE GO IN THE SEARCH CONTEXT FILE) */  unsigned char plaintextVector[256/8];  unsigned char plaintextXorMask[8];  unsigned char ciphertext0[8];  unsigned char ciphertext1[8];  unsigned char plaintextByteMask;  unsigned char searchInfo;  /* PARAMETERS ABOUT THE SEARCH PROCESS */  long totalUnits;                                     /* total search units */  long nextUnstartedKeyBlock;                            /* top 24 bits only */  long totalFinishedKeyBlocks;             /* number of completed key blocks */  long totalUnstartedKeyBlocks;            /* number of blocks left to start */  long totalPendingKeyBlocks;                    /* number of blocks running */} SEARCH_CTX;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?