forked from bgornicki/app-hive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsw.h
62 lines (61 loc) · 1.32 KB
/
sw.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
54
55
56
57
58
59
60
61
62
#pragma once
/**
* Status word for success.
*/
#define SW_OK 0x9000
/**
* Status word for denied by user.
*/
#define SW_DENY 0x6985
/**
* Status word for incorrect P1 or P2.
*/
#define SW_WRONG_P1P2 0x6A86
/**
* Status word for either wrong Lc or lenght of APDU command less than 5.
*/
#define SW_WRONG_DATA_LENGTH 0x6A87
/**
* Status word for unknown command with this INS.
*/
#define SW_INS_NOT_SUPPORTED 0x6D00
/**
* Status word for instruction class is different than CLA.
*/
#define SW_CLA_NOT_SUPPORTED 0x6E00
/**
* Status word for wrong reponse length (buffer too small or too big).
*/
#define SW_WRONG_RESPONSE_LENGTH 0xB000
/**
* Status word for fail to display BIP32 path.
*/
#define SW_WRONG_BIP32_PATH 0xB001
/**
* Status word for wrong transaction length.
*/
#define SW_WRONG_TX_LENGTH 0xB002
/**
* Status word for fail of transaction parsing.
*/
#define SW_TX_PARSING_FAIL 0xB003
/**
* Status word for bad state.
*/
#define SW_BAD_STATE 0xB004
/**
* Status word for signature fail.
*/
#define SW_SIGNATURE_FAIL 0xB005
/**
* Status word for trying to sign hash with policy disabled in settings.
*/
#define SW_HASH_SIGNING_DISABLED 0xB006
/**
* Status word invalid length of input dat.
*/
#define SW_WRONG_HASH_LENGTH 0xB007
/**
* Status word for hash parsing fail.
*/
#define SW_HASH_PARSING_FAIL 0xB008