Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/tee/
A Dtee_ree_fs.c31 #define BLOCK_SIZE (1 << BLOCK_SHIFT) macro
88 size_t offset = pos % BLOCK_SIZE; in out_of_place_write()
94 if (start_block_num * BLOCK_SIZE < in out_of_place_write()
101 memset(block, 0, BLOCK_SIZE); in out_of_place_write()
199 *offs = pbn * BLOCK_SIZE + in get_offs_size()
207 *offs = pbn * BLOCK_SIZE; in get_offs_size()
208 *size = BLOCK_SIZE; in get_offs_size()
252 .block_size = BLOCK_SIZE,
277 BLOCK_SIZE, 1, &offs, &sz); in ree_fs_ftruncate_internal()
282 new_file_len / BLOCK_SIZE); in ree_fs_ftruncate_internal()
[all …]
/optee_os-3.20.0/core/crypto/
A Drng_fortuna.c22 #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()

Completed in 5 milliseconds