|
Embedded SDK
Embedded SDK
|
#include <stdint.h>#include <string.h>#include <ctype.h>#include "os_utils.h"#include "ox_ec.h"#include "cx.h"#include "os_pki.h"#include "ledger_pki.h"#include "tlv_use_case_trusted_name.h"
Go to the source code of this file.
Classes | |
| struct | multi_hash_ctx_s |
| struct | multi_hash_finalized_u |
| struct | tlv_extracted_s |
Macros | |
| #define | TLV_TAGS(X) |
Typedefs | |
| typedef struct multi_hash_ctx_s | multi_hash_ctx_t |
| typedef struct multi_hash_finalized_u | multi_hash_finalized_t |
| typedef struct tlv_extracted_s | tlv_extracted_t |
Functions | |
| static void | init_multi_hash_ctx (multi_hash_ctx_t *hash_ctx) |
| static void | update_multi_hash_ctx (multi_hash_ctx_t *hash_ctx, buffer_t data) |
| static int | finalize_hash_for_algo (const multi_hash_ctx_t *hash_ctx, tlv_trusted_name_signer_algorithm_t signer_algo, multi_hash_finalized_t *multi_hash_finalized) |
| static bool | handle_structure_type (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_version (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_trusted_name_type (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_trusted_name_source (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_blockchain_family (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_trusted_name (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_chain_id (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_address (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_nft_id (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_source_contract (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_challenge (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_not_valid_after (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_signer_key_id (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_signer_algorithm (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_der_signature (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_common (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static tlv_trusted_name_status_t | verify_struct (const tlv_extracted_t *tlv_extracted) |
| static tlv_trusted_name_status_t | verify_signature (const tlv_extracted_t *tlv_extracted) |
| tlv_trusted_name_status_t | tlv_use_case_trusted_name (const buffer_t *payload, tlv_trusted_name_out_t *out) |
| Processes a TLV dynamic descriptor use case. | |
| #define TLV_TAGS | ( | X | ) |
Definition at line 269 of file tlv_use_case_trusted_name.c.
| typedef struct multi_hash_ctx_s multi_hash_ctx_t |
| typedef struct multi_hash_finalized_u multi_hash_finalized_t |
| typedef struct tlv_extracted_s tlv_extracted_t |
|
static |
Definition at line 77 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 189 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 167 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 182 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 210 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 289 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 257 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 196 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 217 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 250 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 243 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 203 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 139 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 174 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 160 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 153 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 146 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 55 of file tlv_use_case_trusted_name.c.
| tlv_trusted_name_status_t tlv_use_case_trusted_name | ( | const buffer_t * | payload, |
| tlv_trusted_name_out_t * | out ) |
Processes a TLV dynamic descriptor use case.
This function parses the provided payload buffer and extracts dynamic descriptor information, storing the results in the output structure.
| [in] | payload | Pointer to the buffer containing the TLV payload data. |
| [out] | out | Pointer to the structure where the parsed dynamic descriptor will be stored. |
Definition at line 390 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 66 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 355 of file tlv_use_case_trusted_name.c.
|
static |
Definition at line 299 of file tlv_use_case_trusted_name.c.