hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-record-bp.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
8#ifndef IFX_RECORD_BP_H
9#define IFX_RECORD_BP_H
10
13
14#ifdef __cplusplus
15extern "C" {
16#endif /* __cplusplus */
17
18/* Macro definitions */
19/* Definitions of function identifiers */
20
24#define IFX_RECORD_BP_SET UINT8_C(0x01)
25
29#define IFX_RECORD_BP_GET UINT8_C(0x02)
30
34#define IFX_RECORD_BP_NEW UINT8_C(0x03)
35
39#define IFX_RECORD_BP_RELEASE_MEMORY UINT8_C(0x04)
40
44#define IFX_RECORD_BP_TYPE_LEN UINT8_C(0x20)
45
49#define IFX_RECORD_BP_TYPE \
50 {0x69, 0x6E, 0x66, 0x69, 0x6E, 0x65, 0x6F, 0x6E, 0x2E, 0x63, 0x6F, \
51 0x6D, 0x3A, 0x6E, 0x66, 0x63, 0x2D, 0x62, 0x72, 0x69, 0x64, 0x67, \
52 0x65, 0x2D, 0x74, 0x61, 0x67, 0x2E, 0x78, 0x35, 0x30, 0x39};
53
57#define IFX_BP_CERT_HANDLERS_NOT_DEFINED UINT8_C(0x01)
58
63 ifx_blob_t **);
64
69 void *);
70
82
96
113
127 const void *certificate);
128
141 void *certificate);
142
154 const ifx_blob_t *payload);
155
167 ifx_blob_t *payload);
168
169#ifdef __cplusplus
170}
171
172#endif /* __cplusplus */
173#endif /* IFX_RECORD_BP_H */
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Definition ifx-error.h:91
Stores the module details and function identifiers.
Model interface to create record types and set/get record fields.
ifx_status_t ifx_record_bp_register(void)
Registers the brand protection record with the NDEF library. Only the registered records are encoded ...
ifx_status_t(* ifx_record_bp_cert_encoder_t)(const void *, ifx_blob_t **)
Function prototype declaration for certificate encoding function.
ifx_status_t ifx_record_bp_get_certificate(const ifx_record_handle_t *handle, void *certificate)
Gets the certificate from the brand protection record handle.
ifx_status_t ifx_record_bp_new(ifx_record_handle_t *handle)
Creates a new brand protection record and the respective handle for the record. This handle can be us...
ifx_status_t ifx_record_bp_set_certificate_handlers(ifx_record_handle_t *handle, ifx_record_bp_cert_encoder_t encoder, ifx_record_bp_cert_decoder_t decoder)
Sets the certificate encoder and decoder callback functions for parsing certificates.
ifx_status_t ifx_record_bp_set_payload(ifx_record_handle_t *handle, const ifx_blob_t *payload)
Sets the payload in brand protection record handle.
ifx_status_t(* ifx_record_bp_cert_decoder_t)(const ifx_blob_t *, void *)
Function prototype declaration for certificate decoding function.
ifx_status_t ifx_record_bp_get_payload(const ifx_record_handle_t *handle, ifx_blob_t *payload)
Gets the payload from the brand protection record handle.
ifx_status_t ifx_record_bp_set_certificate(ifx_record_handle_t *handle, const void *certificate)
Sets certificate in the brand protection record for a given record handle.
Data storage for data and data length where both are required as parameters.
Definition ifx-utils.h:189
Defines the handle for specific record type.