Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 9 of 9) sorted by relevance

/mcuboot-2.7.6/ext/tinycrypt/lib/source/
Dcbc_mode.c42 uint8_t buffer[TC_AES_BLOCK_SIZE]; in tc_cbc_mode_encrypt() local
58 (void)_copy(buffer, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
64 buffer[m++] ^= *in++; in tc_cbc_mode_encrypt()
66 (void)tc_aes_encrypt(buffer, buffer, sched); in tc_cbc_mode_encrypt()
68 buffer, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
82 uint8_t buffer[TC_AES_BLOCK_SIZE]; in tc_cbc_mode_decrypt() local
106 (void)tc_aes_decrypt(buffer, in, sched); in tc_cbc_mode_decrypt()
110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
Dctr_mode.c42 uint8_t buffer[TC_AES_BLOCK_SIZE]; in tc_ctr_mode() local
70 if (tc_aes_encrypt(buffer, nonce, sched)) { in tc_ctr_mode()
81 *out++ = buffer[n] ^ *in++; in tc_ctr_mode()
Dccm_mode.c97 uint8_t buffer[TC_AES_BLOCK_SIZE]; in ccm_ctr_mode() local
123 if (!tc_aes_encrypt(buffer, nonce, sched)) { in ccm_ctr_mode()
128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode()
/mcuboot-2.7.6/boot/cypress/libs/retarget_io_pdl/
Dcy_retarget_io_pdl.c71 __weak size_t __write(int handle, const unsigned char * buffer, size_t size) in __write() argument
80 if (buffer != NULL) in __write()
85 if (*buffer == '\n' && cy_retarget_io_stdout_prev_char != '\r') in __write()
90 cy_retarget_io_stdout_prev_char = *buffer; in __write()
92 cy_retarget_io_putchar(*buffer); in __write()
93 ++buffer; in __write()
140 __weak size_t __read(int handle, unsigned char * buffer, size_t size) in __read() argument
144 if ((handle != _LLIO_STDIN) || (buffer == NULL)) in __read()
150 *buffer = cy_retarget_io_getchar(); in __read()
/mcuboot-2.7.6/boot/cypress/platforms/retarget_io_pdl/
Dcy_retarget_io_pdl.c71 __weak size_t __write(int handle, const unsigned char * buffer, size_t size) in __write() argument
80 if (buffer != NULL) in __write()
85 if (*buffer == '\n' && cy_retarget_io_stdout_prev_char != '\r') in __write()
90 cy_retarget_io_stdout_prev_char = *buffer; in __write()
92 cy_retarget_io_putchar(*buffer); in __write()
93 ++buffer; in __write()
140 __weak size_t __read(int handle, unsigned char * buffer, size_t size) in __read() argument
144 if ((handle != _LLIO_STDIN) || (buffer == NULL)) in __read()
150 *buffer = cy_retarget_io_getchar(); in __read()
/mcuboot-2.7.6/boot/mbed/src/
Dflash_map_backend.cpp170 uint8_t buffer[MCUBOOT_READ_GRANULARITY]; in flash_area_read() local
171 int ret = bd->read(buffer, off + len, read_size); in flash_area_read()
176 memcpy((uint8_t *)dst + len, buffer, remainder); in flash_area_read()
/mcuboot-2.7.6/boot/bootutil/src/
Dbootutil_public.c208 const void *buffer, size_t len) in bootutil_buffer_is_erased() argument
214 if (buffer == NULL || len == 0) { in bootutil_buffer_is_erased()
219 for (i = 0, u8b = (uint8_t *)buffer; i < len; i++) { in bootutil_buffer_is_erased()
Dbootutil_priv.h281 const void *buffer, size_t len);
/mcuboot-2.7.6/docs/
DPORTING.md110 /*< Reads `len` bytes of flash memory at `off` to the buffer at `dst` */
113 /*< Writes `len` bytes of flash memory at `off` from the buffer at `src` */