forked from timwu/avr-jig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjig.h
53 lines (44 loc) · 1.52 KB
/
jig.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
48
49
50
51
52
53
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __JIG_H__
#define __JIG_H__
char PROGMEM usbDescriptorDevice[] = {
0x12, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08,
0x4c, 0x05, 0xeb, 0x02, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01,
};
char PROGMEM usbDescriptorConfiguration[] = {
// config
0x09, 0x02, 0x20, 0x00, 0x01, 0x00, 0x00, 0x80,
0x01,
// interface
0x09, 0x04, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00,
0x00,
// endpoint
0x07, 0x05, 0x02, 0x02, 0x08, 0x00, 0x00,
// endpoint
0x07, 0x05, 0x81, 0x02, 0x08, 0x00, 0x00,
};
#define USB_DONGLE_ID 0xaa, 0xaa
const uint8_t PROGMEM responseHeader[] = {
0x00, 0x00, 0xFF, 0x00, 0x2e, 0x02, 0x02,
USB_DONGLE_ID,
};
const uint8_t usbDongleKey[] = {
0x04, 0x4E, 0x61, 0x1B, 0xA6, 0xA6, 0xE3, 0x9A,
0x98, 0xCF, 0x35, 0x81, 0x2C, 0x80, 0x68, 0xC7,
0xFC, 0x5F, 0x7A, 0xE8
};
#define RESPONSE_OFFSET sizeof(responseHeader)
#define CHALLENGE_OFFSET 7
#endif // __JIG_H__