|
OPTIGA™ Trust M
Host Library Documentation
|
Go to the documentation of this file.
37 #ifndef _PROTECTED_UPDATE_DATA_SET_H_
38 #define _PROTECTED_UPDATE_DATA_SET_H_
42 #define FRAGMENT_DIGEST_LENGTH (0x20)
43 #define MAX_PAYLOAD_SIZE (640U)
45 #define MAX_PAYLOAD_FRAGMENT_SIZE (MAX_PAYLOAD_SIZE - FRAGMENT_DIGEST_LENGTH)
47 #define NONCE_LENGTH (11U)
48 #define FRAGMENT_NUMBER_LENGTH (2U)
49 #define ASSOCIATED_DATA_LENGTH (8U)
50 #define SESSION_KEY_LENGTH (27U)
52 #define PAYLOAD_TYPE_KEY "key"
53 #define PAYLOAD_TYPE_DATA "data"
54 #define PROTECTED_INTEGRATY_TYPE "integrity"
55 #define PROTECTED_CONFIDENTIALITY_TYPE "confidentiality"
256 #define _STATIC_H static
261 #endif //_PROTECTED_UPDATE_DATA_SET_H_
encryption_algo_t encrypt_algo
struct manifest manifest_t
int32_t protected_update_create_fragments(manifest_t *manifest_data, protected_update_data_set_d *p_cbor_manifest)
uint8_t nonce_data[NONCE_LENGTH]
struct confidentiality confidentiality_t
uint16_t actual_memory_allocated
uint8_t session_key[SESSION_KEY_LENGTH]
struct metadata_payload metadata_payload_t
#define SESSION_KEY_LENGTH
struct protected_update_data_set protected_update_data_set_d
uint8_t associated_data[ASSOCIATED_DATA_LENGTH]
key_algorithm_t key_algorithm
uint16_t trust_anchor_oid
data_payload_t * p_data_payload
enum payload_type payload_type_t
metadata_payload_t * p_metadata_payload
@ eIFX_KDF_TLS12_PRF_SHA256
payload_type_t payload_type
int32_t protected_update_create_manifest(manifest_t *manifest_data, protected_update_data_set_d *p_cbor_manifest)
#define ASSOCIATED_DATA_LENGTH
struct data_payload data_payload_t
struct enc_params enc_params_t
enum key_usage key_usage_t
key_payload_t * p_key_payload
@ eMETADATA_IDENTIFIER_FLAG
@ eRSA_SSA_PKCS1_V1_5_SHA_256
const int8_t * key_data_file_path
enum key_algorithm key_algorithm_t
confidentiality_t * p_confidentiality
struct key_payload key_payload_t
uint8_t session_key_length
const int8_t * private_key
union key_params key_params_t
kdf_algo_t key_derivation_algo
enum digest_algo digest_algo_t
enum content_reset_type content_reset_type_t
enum encryption_algo encryption_algo_t
digest_algo_t digest_algo
uint16_t fragments_length
signature_algo_t signature_algo
void protected_update_print_output_dataset(const protected_update_data_set_d *p_cbor_manifest)
uint16_t shared_secret_oid
enum signature_algo signature_algo_t
uint16_t shared_secret_length