Searched refs:BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance
| /optee_os/core/crypto/ |
| H A D | rng_fortuna.c | 22 #define BLOCK_SIZE 16 macro 137 COMPILE_TIME_ASSERT(sizeof(state.counter) == BLOCK_SIZE); in crypto_rng_init() 324 BLOCK_SIZE, in generate_blocks() 325 b + n * BLOCK_SIZE); in generate_blocks() 345 res = generate_blocks(buf, blen / BLOCK_SIZE); in generate_random_data() 348 if (blen % BLOCK_SIZE) { in generate_random_data() 349 uint8_t block[BLOCK_SIZE]; in generate_random_data() 350 uint8_t *b = (uint8_t *)buf + ROUNDDOWN(blen, BLOCK_SIZE); in generate_random_data() 355 memcpy(b, block, blen % BLOCK_SIZE); in generate_random_data() 496 res = generate_blocks(new_key, KEY_SIZE / BLOCK_SIZE); in fortuna_read()
|
| /optee_os/core/tee/ |
| H A D | tee_ree_fs.c | 31 #define BLOCK_SIZE (1 << BLOCK_SHIFT) macro 56 return mempool_alloc(mempool_default, BLOCK_SIZE); in get_tmp_block() 90 size_t offset = pos % BLOCK_SIZE; in out_of_place_write() 91 size_t size_to_write = MIN(remain_bytes, (size_t)BLOCK_SIZE); in out_of_place_write() 93 if (size_to_write + offset > BLOCK_SIZE) in out_of_place_write() 94 size_to_write = BLOCK_SIZE - offset; in out_of_place_write() 96 if (start_block_num * BLOCK_SIZE < in out_of_place_write() 97 ROUNDUP(meta->length, BLOCK_SIZE)) { in out_of_place_write() 103 memset(block, 0, BLOCK_SIZE); in out_of_place_write() 146 const size_t block_nodes = BLOCK_SIZE / (node_size * 2); in get_offs_size() [all …]
|