Home
last modified time | relevance | path

Searched refs:len (Results 1 – 8 of 8) sorted by relevance

/nrf_hw_models-latest/src/HW_models/
DNHW_CRACEN_CM.AES.c67 static void nhw_CRACEN_CM_AES_process_data(struct CM_tag *tag_st, char* buf, size_t len) { in nhw_CRACEN_CM_AES_process_data() argument
76 if (len != BLOCK_SIZE) { in nhw_CRACEN_CM_AES_process_data()
86 bool nhw_CRACEN_CM_AES_feed_data(struct CM_tag *tag_st, char* buf, size_t len) { in nhw_CRACEN_CM_AES_feed_data() argument
90 if (OffsetStartAddr + len > sizeof(CM_AES_regs)) { in nhw_CRACEN_CM_AES_feed_data()
92 __func__, OffsetStartAddr, OffsetStartAddr + len); in nhw_CRACEN_CM_AES_feed_data()
94 memcpy(&((char *)&CM_AES_regs)[OffsetStartAddr], buf, len); in nhw_CRACEN_CM_AES_feed_data()
96 if ((len*8 != 128) && (len*8 != 192) && (len*8 != 256)) { in nhw_CRACEN_CM_AES_feed_data()
97 bs_trace_warning_time_line("%s: Invalid key length (%i)\n", __func__, len*8); in nhw_CRACEN_CM_AES_feed_data()
99 CM_AES_st.AES_KEY_size = len*8; in nhw_CRACEN_CM_AES_feed_data()
108 nhw_CRACEN_CM_AES_process_data(tag_st, buf, len); in nhw_CRACEN_CM_AES_feed_data()
DHW_utils.c10 void hwu_reverse_byte_order(const unsigned char *in_data, unsigned char *out_data, size_t len) in hwu_reverse_byte_order() argument
13 in_data += len - 1; in hwu_reverse_byte_order()
14 for (i = 0; i < len; i++) in hwu_reverse_byte_order()
Dcrc.c104 void append_crc_ble(uint8_t* buf, unsigned int len, uint32_t crc_init) in append_crc_ble() argument
107 crc = crc_update_ble( rev_24(crc_init), buf, len ); in append_crc_ble()
111 buf[len + i] = (crc >> (i*8)) & 0xff; in append_crc_ble()
179 void append_crc_154(uint8_t* buf, unsigned int len, uint16_t crc_init) in append_crc_154() argument
182 crc = crc_update_154( rev_16(crc_init), buf, len ); in append_crc_154()
186 buf[len + i] = (crc >> (i*8)) & 0xff; in append_crc_154()
Dcrc.h16 void append_crc_ble(uint8_t* buf, unsigned int len, uint32_t crc_init);
17 void append_crc_154(uint8_t* buf, unsigned int len, uint16_t crc_init);
DNHW_CRACEN_CM.c161 void nhw_CRACEN_CM_give_pusher_data(char *data, size_t len) { in nhw_CRACEN_CM_give_pusher_data() argument
167 while (len > 0) { in nhw_CRACEN_CM_give_pusher_data()
168 unsigned int to_copy = BS_MIN(len, CM_pusher_st.current_len); in nhw_CRACEN_CM_give_pusher_data()
173 len -= to_copy; in nhw_CRACEN_CM_give_pusher_data()
193 if (len > 0) { in nhw_CRACEN_CM_give_pusher_data()
198 static bool nhw_CRACEN_CM_fetcher_demux(struct CM_tag *tag, char* buf, size_t len) { in nhw_CRACEN_CM_fetcher_demux() argument
200 if ((len != 0) && (buf == NULL)) { in nhw_CRACEN_CM_fetcher_demux()
205 nhw_CRACEN_CM_give_pusher_data(buf, len); in nhw_CRACEN_CM_fetcher_demux()
209 return nhw_CRACEN_CM_AES_feed_data(tag, buf, len); in nhw_CRACEN_CM_fetcher_demux()
DHW_utils.h15 void hwu_reverse_byte_order(const unsigned char *in_data, unsigned char *out_data, size_t len);
DNHW_CRACEN_CM.AES.h18 bool nhw_CRACEN_CM_AES_feed_data(struct CM_tag *tag_st, char* buf, size_t len);
DNHW_CRACEN_CM.h32 void nhw_CRACEN_CM_give_pusher_data(char *data, size_t len);