Lines Matching refs:file
295 FILE *file; in mbedtls_platform_std_nv_seed_read() local
298 if ((file = fopen(MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "rb")) == NULL) { in mbedtls_platform_std_nv_seed_read()
303 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_read()
305 if ((n = fread(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_read()
306 fclose(file); in mbedtls_platform_std_nv_seed_read()
311 fclose(file); in mbedtls_platform_std_nv_seed_read()
317 FILE *file; in mbedtls_platform_std_nv_seed_write() local
320 if ((file = fopen(MBEDTLS_PLATFORM_STD_NV_SEED_FILE, "w")) == NULL) { in mbedtls_platform_std_nv_seed_write()
325 mbedtls_setbuf(file, NULL); in mbedtls_platform_std_nv_seed_write()
327 if ((n = fwrite(buf, 1, buf_len, file)) != buf_len) { in mbedtls_platform_std_nv_seed_write()
328 fclose(file); in mbedtls_platform_std_nv_seed_write()
332 fclose(file); in mbedtls_platform_std_nv_seed_write()