|
Embedded SDK
Embedded SDK
|
#include <stdint.h>#include <string.h>#include "os_math.h"#include "os_utils.h"#include "ox_ec.h"#include "cx.h"#include "os_pki.h"#include "ledger_pki.h"#include "tlv_use_case_transaction_check.h"
Go to the source code of this file.
Classes | |
| struct | tlv_extracted_s |
Macros | |
| #define | TYPE_TRANSACTION_CHECK 0x09 |
| #define | TRANSACTION_CHECK_VERSION 0x01 |
| #define | TRANSACTION_CHECK_TLV_TAGS(X) |
Typedefs | |
| typedef struct tlv_extracted_s | tlv_extracted_t |
Functions | |
| static bool | handle_structure_type (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_structure_version (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_tx_hash (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_domain_hash (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_chain_id (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_risk (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_category (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_type (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_provider_msg (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_tiny_url (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_signature (const tlv_data_t *data, void *tlv_extracted_ptr) |
| static bool | handle_common (const tlv_data_t *data, void *tlv_extracted_ptr) |
| Common handler called for all tags to progressively hash them (except signature). | |
| static tlv_transaction_check_status_t | verify_struct (const tlv_extracted_t *tlv_extracted) |
| static tlv_transaction_check_status_t | verify_signature (tlv_extracted_t *tlv_extracted) |
| tlv_transaction_check_status_t | tlv_use_case_transaction_check (const buffer_t *payload, tlv_transaction_check_out_t *out) |
| Parse a Transaction Check TLV payload. | |
| #define TRANSACTION_CHECK_TLV_TAGS | ( | X | ) |
Definition at line 208 of file tlv_use_case_transaction_check.c.
| #define TRANSACTION_CHECK_VERSION 0x01 |
Definition at line 29 of file tlv_use_case_transaction_check.c.
| #define TYPE_TRANSACTION_CHECK 0x09 |
Definition at line 28 of file tlv_use_case_transaction_check.c.
| typedef struct tlv_extracted_s tlv_extracted_t |
|
static |
Definition at line 87 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 121 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 97 of file tlv_use_case_transaction_check.c.
|
static |
Common handler called for all tags to progressively hash them (except signature).
Definition at line 229 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 77 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 155 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 104 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 191 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 53 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 60 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 174 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 67 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 138 of file tlv_use_case_transaction_check.c.
| tlv_transaction_check_status_t tlv_use_case_transaction_check | ( | const buffer_t * | payload, |
| tlv_transaction_check_out_t * | out ) |
Parse a Transaction Check TLV payload.
Parses the provided TLV payload, verifies the PKI signature, and extracts the simulation result into the output structure.
| [in] | payload | Pointer to the buffer containing the TLV payload data. |
| [out] | out | Pointer to the structure where the parsed Transaction Check result will be stored. |
Definition at line 317 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 291 of file tlv_use_case_transaction_check.c.
|
static |
Definition at line 244 of file tlv_use_case_transaction_check.c.