-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestcase.c
40 lines (38 loc) · 9.61 KB
/
testcase.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
typedef struct _test_case {
unsigned char work[44];
unsigned char nonce[4];
} Test_Case;
Test_Case cases[32] = {
{ 0x8a ,0x17 ,0xcf ,0x6c ,0x88 ,0x52 ,0x31 ,0x63 ,0xa6 ,0xa2 ,0x13 ,0xa7 ,0x19 ,0x61 ,0x2d ,0xb1 ,0x30 ,0xa5 ,0xe7 ,0xdb ,0x47 ,0xf8 ,0x41 ,0x18 ,0x25 ,0x70 ,0x75 ,0x73 ,0x79 ,0x47 ,0xf3 ,0x5e ,0x72 ,0xd7 ,0x67 ,0xbd ,0x52 ,0x90 ,0x81 ,0xbf ,0x19 ,0x07 ,0x0b ,0xfb , 0x00 ,0x00 ,0x3d ,0x62 }// No. 0
,{ 0x7f ,0xe7 ,0xb1 ,0x1f ,0x28 ,0x9c ,0x27 ,0xc7 ,0xc5 ,0x69 ,0x55 ,0x4b ,0xff ,0xea ,0x5c ,0x23 ,0x56 ,0x25 ,0xe8 ,0xbb ,0x9f ,0x70 ,0x35 ,0x68 ,0x6d ,0xce ,0xd7 ,0x2a ,0x96 ,0xc7 ,0x08 ,0x48 ,0x24 ,0xe2 ,0x6c ,0xc0 ,0x52 ,0x90 ,0x8e ,0xf1 ,0x19 ,0x07 ,0x0b ,0xfb , 0x08 ,0x00 ,0x6b ,0xb0 }// No. 1
,{ 0xd4 ,0x50 ,0x88 ,0x30 ,0xc2 ,0xd6 ,0x4c ,0x1f ,0x67 ,0x78 ,0x18 ,0x8f ,0x31 ,0x44 ,0x1d ,0xad ,0x00 ,0x87 ,0x5a ,0x32 ,0x20 ,0xe1 ,0xf4 ,0xf7 ,0xe9 ,0x41 ,0x95 ,0x96 ,0x52 ,0x38 ,0x6a ,0xe1 ,0x6c ,0x61 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