Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/triplib/triplib.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 228 - (show annotations) (download) (as text)
Fri Aug 7 10:16:11 2009 UTC (14 years, 9 months ago) by notanpe
File MIME type: text/x-chdr
File size: 1455 byte(s)
SHA-1 新方式への対応
1 #ifndef TRIPLIB_H
2 #define TRIPLIB_H
3
4 /* トリップのバイト数 */
5 #define SHA1_TRIP_LEN 12
6 #define DES_TRIP_LEN 10
7
8 #define EXP_BUF_LEN 50 /* 3 パターン展開のバッファの大きさ */
9 /*
10 1 2 3 4
11 1234567890123456789012345678901234567890
12 [aA][aA][aA][aA][aA][aA][aA][aA][aA].
13 */
14
15 #define TL_TRUE 1
16 #define TL_FALSE 0
17
18 extern int istrip[];
19 extern int istail[];
20 extern int istailic[];
21
22 extern unsigned char saltTable[];
23
24 /*
25 PAT_ と LOC_ は、32bit 変数に先頭からのオフセットと一緒に突っ込むために
26 こうしてある。
27 */
28
29 /* 大文字小文字指定 */
30 #define PAT_ANY 0x000100 /* 0001B 区別なし */
31 #define PAT_PERF 0x000200 /* 0010B 完全一致 */
32 #define PAT_3 0x000600 /* 0110B 完全一致、全大、全小、先頭大 */
33
34 /* 位置指定 */
35 #define LOC_HEAD 0x5e0000 /* 先頭 '^' = 0x5e */
36 #define LOC_TAIL 0x3e0000 /* 末尾 '>' = 0x3e */
37 #define LOC_ANY 0x000000 /* 指定なし '\0' = 0x00 */
38
39 #ifdef __MINGW32__
40 #define PRIO_REAL 0 /* リアルタイム */
41 #define PRIO_HIGH 1 /* 高 */
42 #define PRIO_ABOVE 2 /* 通常以上 */
43 #define PRIO_NORM 3 /* 通常 */
44 #define PRIO_BELOW 4 /* 通常以下 */
45 #define PRIO_IDLE 5 /* 低 */
46
47 void setPriority( int priority );
48 #endif /* __MINGW32__ */
49
50 int delCr( unsigned char * );
51 void make3Pattern( unsigned char *org, unsigned char *pat[3] );
52 void make3PatternR( unsigned char *org, unsigned char *pat[3] );
53
54 #endif /* TRIPLIB_H */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Rev URL

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