ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
key_import_internal.h
Go to the documentation of this file.
1
41
42#pragma once
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#include <stdint.h>
49
50#include "ra8_attributes.h"
51#include "ra8_err.h"
52
63
78
113RA8_PRIV [[nodiscard]] ra8_err_t
114priv_ra8_key_import_seal(const uint8_t* blob, uint32_t blob_len, uint32_t* out_handle);
115
134RA8_PRIV [[nodiscard]] ra8_err_t priv_ra8_key_import_resolve(uint32_t handle, uint16_t* out_slot);
135
162RA8_PRIV [[nodiscard]] ra8_err_t priv_ra8_key_import_build_blob(const uint8_t* material,
163 uint8_t* out_blob);
164
165#ifdef __cplusplus
166}
167#endif
ra8_err_t priv_ra8_key_import_seal(const uint8_t *blob, uint32_t blob_len, uint32_t *out_handle)
Validate a sealed blob and import the key into a free slot.
Definition key_import.c:268
ra8_err_t priv_ra8_key_import_build_blob(const uint8_t *material, uint8_t *out_blob)
Build a sealed blob from a raw key (provisioning + test helper).
Definition key_import.c:369
ra8_key_import_limits_t
Sizing constants exposed to NS callers via the veneer.
@ k_ra8_key_import_key_bytes
Key portion length.
@ k_ra8_key_import_mac_bytes
Trailing AES-CMAC tag length.
@ k_ra8_key_import_handle_zero
Reserved invalid-handle sentinel.
@ k_ra8_key_import_blob_bytes
32-byte key + 16-byte CMAC.
ra8_err_t priv_ra8_key_import_resolve(uint32_t handle, uint16_t *out_slot)
Resolve a handle to the underlying slot index.
Definition key_import.c:329
ra8_err_t priv_ra8_key_import_reset(void)
Reset the import table (drops every handle) and re-seed the salt.
Definition key_import.c:224
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546