-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_data.h
47 lines (44 loc) · 2.18 KB
/
sample_data.h
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
41
42
43
44
45
46
47
#ifndef SAMPLE_DATA_H_
#define SAMPLE_DATA_H_
/******************************************************
* Test signature verification with hard-coded data *
******************************************************/
static const uint8_t priv_key_g[32] = {
0x21,0x3f,0xcc,0x3d,0x04,0x0f,0x36,0x8e,0xb7,0x85,0x2f,0x06,0xdd,0xa1,0x8c,0x40,
0x02,0x5e,0xbc,0x9a,0x31,0xbe,0x95,0x79,0xe6,0x23,0xb7,0x38,0x67,0x64,0xe1,0x5b
};
static const uint8_t pub_key_g[65] = {
0x04,
/* 1 */
0x7e,0x68,0x22,0x03,0x06,0x86,0x40,0x29,0xcb,0x02,0x66,0x58,0x93,0x97,0x98,0x87,
0xab,0x58,0xf0,0x8e,0x40,0x88,0x42,0xcc,0x04,0x98,0x7c,0x2f,0x8e,0x28,0x69,0x1b,
/* 33 */
0xa6,0xf1,0xe5,0x85,0x77,0x0f,0x85,0xbf,0x97,0x06,0x8f,0xcd,0x33,0x3c,0xe6,0x2c,
0x1e,0x3a,0xa9,0x1f,0xc3,0xce,0x1e,0xc2,0x14,0x6e,0x65,0x24,0x42,0x9d,0xce,0x83
};
static const uint8_t data_g[128] = {
0x54,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,
0x20,0x64,0x61,0x74,0x61,0x0a,0x54,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,
0x73,0x61,0x6d,0x70,0x6c,0x65,0x20,0x64,0x61,0x74,0x61,0x0a,0x54,0x68,0x69,0x73,
0x20,0x69,0x73,0x20,0x61,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x20,0x64,0x61,0x74,
0x61,0x0a,0x54,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x73,0x61,0x6d,0x70,
0x6c,0x65,0x20,0x64,0x61,0x74,0x61,0x0a,0x54,0x68,0x69,0x73,0x20,0x69,0x73,0x20,
0x61,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x20,0x64,0x61,0x74,0x61,0x0a,0x54,0x68,
0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x21,0x0a
};
static const uint8_t hash_g[32] = {
0xc8,0x05,0x66,0x45,0xd0,0x5d,0xb1,0x61,0x73,0x6f,0x84,0x50,0xce,0xab,0xc1,0x0a,
0x89,0xd8,0xd0,0x83,0xa3,0xab,0xd0,0x46,0xf4,0xa4,0xec,0xa6,0x0a,0xa7,0x6f,0x65
};
static const uint8_t sig_g[70] = {
0x30,0x44,
0x02,0x20,
/* 4 */
0x69,0x91,0x3a,0x9a,0x82,0x42,0x76,0x5e,0x55,0x60,0xcb,0xaf,0x4d,0x66,0xe1,0x42,
0x98,0x88,0xad,0xc0,0xde,0x79,0xe3,0x17,0xa4,0x58,0x78,0xfe,0xc5,0x3c,0x4e,0x6a,
0x02,0x20,
/* 38 */
0x52,0x12,0x48,0xd5,0x4d,0x63,0x71,0x9a,0xc6,0x4d,0x4b,0x50,0x1d,0x7b,0x7b,0x83,
0x47,0xe1,0x5f,0xa8,0x79,0xef,0x82,0xa3,0x4c,0x94,0x29,0x71,0x53,0x4d,0x05,0x16
};
#endif