This file defines APIs, types and data structures used for protected update data set creation.
More...
|
struct | kdf |
|
struct | enc_params |
|
struct | confidentiality |
|
struct | data_payload |
|
struct | ecc_key |
|
struct | rsa_key |
|
struct | aes_key |
|
union | key_params |
|
struct | key_payload |
|
struct | metadata_payload |
|
struct | manifest |
|
struct | protected_update_data_set |
|
#define | FRAGMENT_DIGEST_LENGTH (0x20) |
|
#define | MAX_PAYLOAD_SIZE (640U) |
|
#define | MAC_SIZE (8U) |
|
#define | MAX_PAYLOAD_FRAGMENT_SIZE (MAX_PAYLOAD_SIZE - FRAGMENT_DIGEST_LENGTH) |
|
#define | NONCE_LENGTH (11U) |
|
#define | FRAGMENT_NUMBER_LENGTH (2U) |
|
#define | ASSOCIATED_DATA_LENGTH (8U) |
|
#define | SESSION_KEY_LENGTH (27U) |
|
#define | PAYLOAD_TYPE_KEY "key" |
|
#define | PAYLOAD_TYPE_DATA "data" |
|
#define | PROTECTED_INTEGRATY_TYPE "integrity" |
|
#define | PROTECTED_CONFIDENTIALITY_TYPE "confidentiality" |
|
#define | TRUE (1U) |
|
#define | FALSE (0U) |
|
#define | _STATIC_H static |
|
enum | key_type { eRSA = 1,
eECC = 2,
eAES = 3
} |
|
enum | payload_type { ePAYLOAD_DATA = -1,
ePAYLOAD_METADATA = -2,
ePAYLOAD_KEY = -3
} |
|
enum | key_algorithm {
eECC_NIST_P_256 = 0x03,
eECC_NIST_P_384 = 0x04,
eRSA_1024_EXP = 0x41,
eRSA_2048_EXP = 0x42,
eAES_128 = 0x81
} |
|
enum | key_usage { eAUTH = 0x01,
eENC = 0x02,
eSIGN = 0x10,
eKEY_AGREE = 0x20
} |
|
enum | encryption_algo { eAES_CCM_16_64_128 = 10
} |
|
enum | kdf_algo { eIFX_KDF_TLS12_PRF_SHA256 = -65720
} |
|
enum | content_reset_type { eMETADATA_IDENTIFIER_FLAG = 0,
eZEROES = 1,
eRANDOM = 2
} |
|
enum | signature_algo { eES_SHA = -7,
eRSA_SSA_PKCS1_V1_5_SHA_256 = -65700
} |
|
enum | digest_algo { eSHA_256 = 41
} |
|
typedef enum key_type | key_type_d |
|
typedef enum payload_type | payload_type_t |
|
typedef enum key_algorithm | key_algorithm_t |
|
typedef enum key_usage | key_usage_t |
|
typedef enum encryption_algo | encryption_algo_t |
|
typedef enum kdf_algo | kdf_algo_t |
|
typedef enum content_reset_type | content_reset_type_t |
|
typedef struct kdf | kdf_t |
|
typedef struct enc_params | enc_params_t |
|
typedef struct confidentiality | confidentiality_t |
|
typedef struct data_payload | data_payload_t |
|
typedef struct ecc_key | ecc_key_t |
|
typedef struct rsa_key | rsa_key_t |
|
typedef struct aes_key | aes_key_t |
|
typedef union key_params | key_params_t |
|
typedef struct key_payload | key_payload_t |
|
typedef struct metadata_payload | metadata_payload_t |
|
typedef enum signature_algo | signature_algo_t |
|
typedef enum digest_algo | digest_algo_t |
|
typedef struct manifest | manifest_t |
|
typedef struct protected_update_data_set | protected_update_data_set_d |
|
int32_t | protected_update_create_manifest (manifest_t *manifest_data, protected_update_data_set_d *p_cbor_manifest) |
|
int32_t | protected_update_create_fragments (manifest_t *manifest_data, protected_update_data_set_d *p_cbor_manifest) |
|
void | protected_update_print_output_dataset (const protected_update_data_set_d *p_cbor_manifest) |
|
This file defines APIs, types and data structures used for protected update data set creation.
- Author
- Infineon Technologies AG
Definition in file protected_update_data_set.h.