Lines Matching refs:f
461 FILE *f = NULL; in mbedtls_entropy_write_seed_file() local
469 if ((f = fopen(path, "wb")) == NULL) { in mbedtls_entropy_write_seed_file()
475 mbedtls_setbuf(f, NULL); in mbedtls_entropy_write_seed_file()
477 if (fwrite(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) != MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_write_seed_file()
487 if (f != NULL) { in mbedtls_entropy_write_seed_file()
488 fclose(f); in mbedtls_entropy_write_seed_file()
497 FILE *f; in mbedtls_entropy_update_seed_file() local
501 if ((f = fopen(path, "rb")) == NULL) { in mbedtls_entropy_update_seed_file()
506 mbedtls_setbuf(f, NULL); in mbedtls_entropy_update_seed_file()
508 fseek(f, 0, SEEK_END); in mbedtls_entropy_update_seed_file()
509 n = (size_t) ftell(f); in mbedtls_entropy_update_seed_file()
510 fseek(f, 0, SEEK_SET); in mbedtls_entropy_update_seed_file()
516 if (fread(buf, 1, n, f) != n) { in mbedtls_entropy_update_seed_file()
522 fclose(f); in mbedtls_entropy_update_seed_file()