REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
dcp.cpp
Go to the documentation of this file.
58#define DCP_KEY_INDEX(x) (((uint32_t)(((uint32_t)(x)) << DCP_KEY_INDEX_SHIFT)) & DCP_KEY_INDEX_MASK)
176 uint8_t RESERVED_0[12];
178 uint8_t RESERVED_1[12];
180 uint8_t RESERVED_2[12];
182 uint8_t RESERVED_3[12];
184 uint8_t RESERVED_4[12];
186 uint8_t RESERVED_5[12];
188 uint8_t RESERVED_6[12];
190 uint8_t RESERVED_7[12];
192 uint8_t RESERVED_8[12];
194 uint8_t RESERVED_9[12];
196 uint8_t RESERVED_10[12];
198 uint8_t RESERVED_11[12];
200 uint8_t RESERVED_12[12];
202 uint8_t RESERVED_13[12];
204 uint8_t RESERVED_14[28];
206 uint8_t RESERVED_15[12];
208 uint8_t RESERVED_16[12];
210 uint8_t RESERVED_17[12];
212 uint8_t RESERVED_18[12];
214 uint8_t RESERVED_19[12];
216 uint8_t RESERVED_20[12];
218 uint8_t RESERVED_21[12];
220 uint8_t RESERVED_22[12];
222 uint8_t RESERVED_23[12];
224 uint8_t RESERVED_24[12];
226 uint8_t RESERVED_25[12];
228 uint8_t RESERVED_26[12];
230 uint8_t RESERVED_27[12];
232 uint8_t RESERVED_28[12];
234 uint8_t RESERVED_29[12];
236 uint8_t RESERVED_30[524];
238 uint8_t RESERVED_31[12];
240 uint8_t RESERVED_32[12];
242 uint8_t RESERVED_33[12];
426FLASHMEM void dcp_hash_process_message_data(dcp_hash_ctx_internal_t *ctxInternal, const uint8_t *message,
611FLASHMEM void hash(const uint8_t *msg, size_t msg_len, uint8_t *out_hash, dcp_hash_algo_t algo) {
A recoverable error, inspired from https://abseil.io/docs/cpp/guides/status and https://github....
Definition error.h:35
Definition carrier.h:12
STL namespace.
Definition handler.h:10
FLASHMEM void DCP_HASH_Update(dcp_hash_ctx_t *ctx, const uint8_t *input, size_t inputSize)
Definition dcp.cpp:465
static FLASHMEM uint32_t dcp_get_channel_status(dcp_channel_t channel)
Definition dcp.cpp:254
enum utils::_dcp_key_slot dcp_key_slot_t
uint32_t DCP_WaitForChannelComplete(dcp_handle_t *handle)
Definition dcp.cpp:317
enum utils::_dcp_swap dcp_swap_t
FLASHMEM void DCP_HASH_Finish(dcp_hash_ctx_t *ctx, uint8_t *output)
Definition dcp.cpp:493
struct utils::_dcp_handle dcp_handle_t
static FLASHMEM uint32_t dcp_hash_update_non_blocking(dcp_hash_ctx_internal_t *ctxInternal, dcp_work_packet_t *dcpPacket, const uint8_t *msg, size_t size)
Definition dcp.cpp:391
FLASHMEM void hash(const uint8_t *msg, size_t msg_len, uint8_t *out_hash, dcp_hash_algo_t algo)
Definition dcp.cpp:611
static FLASHMEM uint32_t dcp_schedule_work(dcp_handle_t *handle, dcp_work_packet_t *dcpPacket)
Definition dcp.cpp:331
static FLASHMEM void dcp_reverse_and_copy(uint8_t *src, uint8_t *dest, size_t src_len)
Definition dcp.cpp:248
struct utils::_dcp_hash_ctx_internal dcp_hash_ctx_internal_t
struct utils::_dcp_work_packet dcp_work_packet_t
enum utils::_dcp_hash_algo_t dcp_hash_algo_t
FLASHMEM void hash_sha1(const uint8_t *msg, size_t msg_len, uint8_t *out_hash)
Computes the SHA1 sum of an arbitrary message (large memory segment), hardware-accelerated on the Tee...
Definition dcp.cpp:635
FLASHMEM void DCP_HASH_Init(dcp_handle_t *handle, dcp_hash_ctx_t *ctx, dcp_hash_algo_t algo)
Definition dcp.cpp:452
void dcp_hash_update(dcp_hash_ctx_internal_t *ctxInternal, const uint8_t *msg, size_t size)
Definition dcp.cpp:412
FLASHMEM void hash_sha256(const uint8_t *msg, size_t msg_len, uint8_t *out_hash)
Computes the SHA256 sum of an arbitrary message (large memory segment).
Definition dcp.cpp:631
enum utils::_dcp_channel dcp_channel_t
static FLASHMEM void dcp_clear_channel_status(uint32_t mask)
Definition dcp.cpp:296
union utils::_dcp_hash_block dcp_hash_block_t
FLASHMEM void dcp_hash_process_message_data(dcp_hash_ctx_internal_t *ctxInternal, const uint8_t *message, size_t messageSize)
Definition dcp.cpp:426
struct utils::_dcp_hash_ctx_t dcp_hash_ctx_t
enum utils::_dcp_hash_algo_state dcp_hash_algo_state_t
enum utils::_dcp_ch_enable _dcp_ch_enable_t
volatile uint32_t CH1CMDPTR
DCP channel 1 command pointer address register, offset: 0x140.
Definition dcp.cpp:213
volatile uint32_t CH3CMDPTR
DCP channel 3 command pointer address register, offset: 0x1C0.
Definition dcp.cpp:229
volatile uint32_t CH2CMDPTR
DCP channel 2 command pointer address register, offset: 0x180.
Definition dcp.cpp:221
volatile uint32_t CH0CMDPTR
DCP channel 0 command pointer address register, offset: 0x100.
Definition dcp.cpp:205
Definition dcp.cpp:142
uint32_t swapConfig
For configuration of key, input, output byte/word swap options.
Definition dcp.cpp:146
dcp_key_slot_t keySlot
For operations with key (such as AES encryption/decryption), specify DCP key slot.
Definition dcp.cpp:145
Definition dcp.cpp:151
Definition dcp.cpp:128
Definition dcp.cpp:162
uint32_t destinationBufferAddress
Definition dcp.cpp:167
Definition dcp.cpp:132