Searched refs:BUF_LEN (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/crypto/tinycrypt/src/ |
D | cmac_mode.c | 53 #define BUF_LEN 16 macro 74 uint8_t zero[BUF_LEN]; in verify_gf_2_128_double() 75 uint8_t L[BUF_LEN]; in verify_gf_2_128_double() 76 const uint8_t l[BUF_LEN] = { in verify_gf_2_128_double() 80 const uint8_t k1[BUF_LEN] = { in verify_gf_2_128_double() 84 const uint8_t k2[BUF_LEN] = { in verify_gf_2_128_double() 91 if (memcmp(L, l, BUF_LEN) != 0) { in verify_gf_2_128_double() 99 if (memcmp(K1, k1, BUF_LEN) != 0) { in verify_gf_2_128_double() 107 if (memcmp(K2, k2, BUF_LEN) != 0) { in verify_gf_2_128_double() 123 const uint8_t tag[BUF_LEN] = { in verify_cmac_null_msg() [all …]
|
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/ |
D | main.c | 16 #define BUF_LEN 512 macro 40 static uint8_t generic_buf[BUF_LEN]; 101 memset(generic_buf, 0, BUF_LEN); in init_target() 111 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, in init_target() 123 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, in ZTEST() 127 rc = stream_flash_init(NULL, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 130 rc = stream_flash_init(&ctx, NULL, generic_buf, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 133 rc = stream_flash_init(&ctx, fdev, NULL, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 137 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 149 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN - 1, false); in ZTEST() [all …]
|
/Zephyr-latest/tests/lib/mem_alloc/src/ |
D | main.c | 46 #define BUF_LEN 10 macro 65 iptr = malloc(BUF_LEN); in _test_no_mem_malloc() 81 reloc_ptr = realloc(ptr, BUF_LEN); in _test_no_mem_realloc() 188 iptr = malloc(BUF_LEN * sizeof(int)); in ZTEST() 190 memset(iptr, 'p', BUF_LEN * sizeof(int)); in ZTEST() 214 ZTEST_BMEM unsigned char filled_buf[BUF_LEN]; 218 char orig_size = BUF_LEN; in ZTEST() 219 char new_size = BUF_LEN + BUF_LEN; in ZTEST() 233 (void)memset(filled_buf, 'p', BUF_LEN); in ZTEST() 234 zassert_true(((memcmp(ptr, filled_buf, BUF_LEN)) == 0), in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/fs/fs_api/src/ |
D | test_fs.c | 18 #define BUF_LEN 128 macro 19 static char buffer[BUF_LEN]; 121 if (file_length + bw > BUF_LEN) { in temp_write() 122 bw = BUF_LEN - file_length; in temp_write() 180 if (length > BUF_LEN) { in temp_truncate()
|