Lines Matching refs:MBEDTLS_ENTROPY_BLOCK_SIZE

55                                MBEDTLS_ENTROPY_BLOCK_SIZE,  in mbedtls_entropy_init()
124 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
129 if (use_len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in entropy_update()
135 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
271 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
273 if (len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_func()
318 } while (!thresholds_reached || strong_size < MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
320 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
346 MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_func()
354 buf, MBEDTLS_ENTROPY_BLOCK_SIZE, buf)) != 0) { in mbedtls_entropy_func()
382 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_update_nv_seed()
385 if ((ret = mbedtls_entropy_func(ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_update_nv_seed()
389 if (mbedtls_nv_seed_write(buf, MBEDTLS_ENTROPY_BLOCK_SIZE) < 0) { in mbedtls_entropy_update_nv_seed()
394 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_update_nv_seed()
395 ret = mbedtls_entropy_update_manual(ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_update_nv_seed()
406 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_write_seed_file()
408 if ((ret = mbedtls_entropy_func(ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_write_seed_file()
421 if (fwrite(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) != MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_write_seed_file()
603 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test()
604 unsigned char acc[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test()