mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2024-09-20 11:20:08 +00:00
0017284103
gnuk/openpgp will be left as another pkcs15 app. Lots of work has been done in the meanwhile. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
14 lines
753 B
C
14 lines
753 B
C
#define GPG_APPLICATION_TERMINATED() set_res_sw (0x62, 0x85)
|
|
#define GPG_MEMORY_FAILURE() set_res_sw (0x65, 0x81)
|
|
#define GPG_WRONG_LENGTH() set_res_sw (0x67, 0x00)
|
|
#define GPG_SECURITY_FAILURE() set_res_sw (0x69, 0x82)
|
|
#define GPG_SECURITY_AUTH_BLOCKED() set_res_sw (0x69, 0x83)
|
|
#define GPG_CONDITION_NOT_SATISFIED() set_res_sw (0x69, 0x85)
|
|
#define GPG_COMMAND_NOT_ALLOWED() set_res_sw (0x69, 0x86)
|
|
#define GPG_FUNCTION_NOT_SUPPORTED() set_res_sw (0x6a, 0x81)
|
|
#define GPG_NO_FILE() set_res_sw (0x6a, 0x82)
|
|
#define GPG_NO_RECORD() set_res_sw (0x6a, 0x88)
|
|
#define GPG_BAD_P1_P2() set_res_sw (0x6b, 0x00)
|
|
#define GPG_NO_INS() set_res_sw (0x6d, 0x00)
|
|
#define GPG_ERROR() set_res_sw (0x6f, 0x00)
|
|
#define GPG_SUCCESS() set_res_sw (0x90, 0x00) |