openpgp-card-app/unit-tests/mocks/offsets.h

27 lines
387 B
C
Raw Normal View History

2024-01-17 17:22:39 +00:00
#pragma once
/**
* Offset of instruction class.
*/
#define OFFSET_CLA 0
/**
* Offset of instruction code.
*/
#define OFFSET_INS 1
/**
* Offset of instruction parameter 1.
*/
#define OFFSET_P1 2
/**
* Offset of instruction parameter 2.
*/
#define OFFSET_P2 3
/**
* Offset of command data length.
*/
#define OFFSET_LC 4
/**
* Offset of command data.
*/
#define OFFSET_CDATA 5