Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 38) sorted by relevance

12

/mcuboot-latest/scripts/tests/
Dtest_keys.py62 imgtool, ["keygen", "--key", str(gen_key), "--type", key_type]
71 assert str(gen_key2) != str(gen_key)
75 imgtool, ["keygen", "--key", str(gen_key2), "--type", key_type]
93 ["openssl", "pkey", "-in", str(gen_key), "-check", "-noout", "-text"],
115 str(gen_key),
139 str(gen_key),
141 str(pub_key),
168 str(gen_key),
170 str(pub_key_hash),
199 str(gen_key),
[all …]
Dtest_compression.py61 def test_lzma2_compression(tmpdir: Path, key_file: Path, compression: str, compressed: bool): argument
76 str(in_file),
77 str(out_file),
/mcuboot-latest/boot/zcbor/include/
Dzcbor_decode.h224 bool zcbor_search_key_bstr_term(zcbor_state_t *state, char const *str, size_t maxlen);
225 bool zcbor_search_key_tstr_term(zcbor_state_t *state, char const *str, size_t maxlen);
226 #define zcbor_search_key_bstr_lit(state, str) zcbor_search_key_bstr_ptr(state, str, sizeof(str) - 1) argument
227 #define zcbor_search_key_tstr_lit(state, str) zcbor_search_key_tstr_ptr(state, str, sizeof(str) - 1) argument
228 #define zcbor_search_key_bstr_arr(state, str) zcbor_search_key_bstr_ptr(state, str, (sizeof(str))) argument
229 #define zcbor_search_key_tstr_arr(state, str) zcbor_search_key_tstr_ptr(state, str, (sizeof(str))) argument
372 bool zcbor_bstr_expect_term(zcbor_state_t *state, char const *str, size_t maxlen);
373 bool zcbor_tstr_expect_term(zcbor_state_t *state, char const *str, size_t maxlen);
374 #define zcbor_bstr_expect_lit(state, str) zcbor_bstr_expect_ptr(state, str, sizeof(str) - 1) argument
375 #define zcbor_tstr_expect_lit(state, str) zcbor_tstr_expect_ptr(state, str, sizeof(str) - 1) argument
[all …]
Dzcbor_encode.h212 bool zcbor_bstr_encode_ptr(zcbor_state_t *state, const char *str, size_t len);
213 bool zcbor_tstr_encode_ptr(zcbor_state_t *state, const char *str, size_t len);
214 bool zcbor_bstr_put_term(zcbor_state_t *state, char const *str, size_t maxlen);
215 bool zcbor_tstr_put_term(zcbor_state_t *state, char const *str, size_t maxlen);
216 #define zcbor_bstr_put_lit(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str) - 1) argument
217 #define zcbor_tstr_put_lit(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str) - 1) argument
218 #define zcbor_bstr_put_arr(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str)) argument
219 #define zcbor_tstr_put_arr(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str)) argument
/mcuboot-latest/boot/espressif/port/esp32c3/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
92 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
109 usb_serial_jtag_ll_read_rxfifo((uint8_t *)&str[read_len], 1); in console_read()
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
115 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
129 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
141 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/port/esp32c6/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
92 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
109 usb_serial_jtag_ll_read_rxfifo((uint8_t *)&str[read_len], 1); in console_read()
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
115 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
129 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
141 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/port/esp32h2/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
92 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
109 usb_serial_jtag_ll_read_rxfifo((uint8_t *)&str[read_len], 1); in console_read()
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
115 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
129 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
141 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/port/esp32s3/
Dserial_adapter.c78 void console_write(const char *str, int cnt) in console_write() argument
85 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
95 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
104 int console_read(char *str, int cnt, int *newline) in console_read() argument
113 usb_serial_jtag_ll_read_rxfifo((uint8_t *)&str[read_len], 1); in console_read()
118 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
119 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
133 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
135 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
145 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/port/esp32/
Dserial_adapter.c68 void console_write(const char *str, int cnt) in console_write() argument
76 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, cnt); in console_write()
79 int console_read(char *str, int cnt, int *newline) in console_read() argument
90 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
92 if (read_len == cnt || str[read_len - 1] == '\n') { in console_read()
102 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/include/serial_adapter/
Dserial_adapter.h13 void console_write(const char *str, int cnt);
19 int console_read(char *str, int str_cnt, int *newline);
/mcuboot-latest/boot/zephyr/include/serial_adapter/
Dserial_adapter.h24 console_write(const char *str, int cnt);
30 console_read(char *str, int str_cnt, int *newline);
/mcuboot-latest/boot/espressif/port/esp32c2/
Dserial_adapter.c70 void console_write(const char *str, int cnt) in console_write() argument
79 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
87 int console_read(char *str, int cnt, int *newline) in console_read() argument
99 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
101 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
111 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/boot/espressif/port/esp32s2/
Dserial_adapter.c73 void console_write(const char *str, int cnt) in console_write() argument
82 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, write_len); in console_write()
90 int console_read(char *str, int cnt, int *newline) in console_read() argument
102 uart_ll_read_rxfifo(serial_boot_uart_dev, (uint8_t *)&str[read_len], 1); in console_read()
104 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
113 *newline = (str[read_len - 1] == '\n') ? 1 : 0; in console_read()
/mcuboot-latest/ci/fih_test_docker/
Ddamage_image.py57 " ih_load_addr = " + str(self.ih_load_addr),
58 " ih_hdr_size = " + str(self.ih_hdr_size),
59 " ih_protect_tlv_size = " + str(self.ih_protect_tlv_size),
60 " ih_img_size = " + str(self.ih_img_size),
61 " ih_flags = " + str(self.ih_flags),
62 " iv_major = " + str(self.iv_major),
63 " iv_minor = " + str(self.iv_minor),
64 " iv_revision = " + str(self.iv_revision),
65 " iv_build_num = " + str(self.iv_build_num),
66 " _pad1 = " + str(self._pad1)])
[all …]
/mcuboot-latest/boot/bootutil/include/bootutil/
Dfault_injection_hardening.h280 #define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt "::" ::); argument
282 #define FIH_LABEL(str) do {} while (0) argument
284 #define FIH_LABEL(str) __asm volatile ("FIH_LABEL_" str "_%=:" ::); argument
/mcuboot-latest/boot/zephyr/
Dserial_adapter.c78 console_write(const char *str, int cnt) in console_write() argument
83 if (console_out((int)str[i]) == EOF) { in console_write()
90 console_read(char *str, int str_size, int *newline) in console_read() argument
106 memcpy(str, line, len); in console_read()
107 str[len] = '\0'; in console_read()
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_ecc_utils.c131 void string2scalar(unsigned int *scalar, unsigned int num_word32, char *str) in string2scalar() argument
136 size_t hexlen = strlen(str); in string2scalar()
140 if (0 > (padding = 2 * num_bytes - strlen(str))) in string2scalar()
143 2 * num_bytes, strlen(str)); in string2scalar()
149 if (false == hex2bin(tmp + padding / 2, num_bytes, str, hexlen)) in string2scalar()
/mcuboot-latest/boot/mynewt/boot_uart/src/
Dboot_uart.c103 boot_uart_read(char *str, int cnt, int *newline) in boot_uart_read() argument
118 *str = '\0'; in boot_uart_read()
127 *str++ = ch; in boot_uart_read()
/mcuboot-latest/boot/mynewt/boot_uart/include/boot_uart/
Dboot_uart.h25 int boot_uart_read(char *str, int cnt, int *newline);
/mcuboot-latest/boot/zcbor/src/
Dzcbor_encode.c317 bool zcbor_bstr_encode_ptr(zcbor_state_t *state, const char *str, size_t len) argument
319 const struct zcbor_string zs = { .value = (const uint8_t *)str, .len = len };
325 bool zcbor_tstr_encode_ptr(zcbor_state_t *state, const char *str, size_t len) argument
327 const struct zcbor_string zs = { .value = (const uint8_t *)str, .len = len };
333 bool zcbor_bstr_put_term(zcbor_state_t *state, char const *str, size_t maxlen) argument
335 return zcbor_bstr_encode_ptr(state, str, strnlen(str, maxlen));
339 bool zcbor_tstr_put_term(zcbor_state_t *state, char const *str, size_t maxlen) argument
341 return zcbor_tstr_encode_ptr(state, str, strnlen(str, maxlen));
/mcuboot-latest/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/
Dstartup_psoc6_02_cm0plus.S184 str r0, [r2, r3]
212 str r0, [r2,r3]
249 str r0, [r1, r2]
275 str r0, [r1, r2]
283 str r0, [r1]
/mcuboot-latest/boot/boot_serial/include/boot_serial/
Dboot_serial.h36 int (*read)(char *str, int cnt, int *newline);
/mcuboot-latest/boot/mynewt/src/
Dmain.c63 static int boot_read(char *str, int cnt, int *newline);
70 boot_read(char *str, int cnt, int *newline) in boot_read() argument
91 return boot_uart_read(str, cnt, newline); in boot_read()
/mcuboot-latest/boot/boot_serial/test/src/
Dboot_test.c44 test_uart_write(const char *str, int len) in TEST_CASE_DECL()
/mcuboot-latest/ext/tinycrypt/tests/include/
Dtest_ecc_utils.h78 void string2scalar(unsigned int * scalar, unsigned int num_word32, char *str);

12