Home
last modified time | relevance | path

Searched refs:sha1_buf (Results 1 – 7 of 7) sorted by relevance

/external/selinux/libselinux/utils/
Dselabel_get_digests_all_partial_matches.c40 char *sha1_buf = NULL; in main() local
108 sha1_buf = calloc(1, digest_len * 2 + 1); in main()
109 if (!sha1_buf) { in main()
121 sprintf((&sha1_buf[i * 2]), in main()
124 printf("SHA1 digest: %s\n", sha1_buf); in main()
138 sprintf((&sha1_buf[i * 2]), "%02x", in main()
140 printf("generated SHA1 digest: %s\n", sha1_buf); in main()
147 sprintf((&sha1_buf[i * 2]), in main()
150 printf("%s\n", sha1_buf); in main()
155 free(sha1_buf); in main()
Dselabel_digest.c70 char *sha1_buf; in main() local
155 sha1_buf = malloc(digest_len * 2 + 1); in main()
156 if (!sha1_buf) { in main()
165 sprintf(&(sha1_buf[i * 2]), "%02x", sha1_digest[i]); in main()
167 printf("%s\n", sha1_buf); in main()
183 rc = run_check_digest(cmd_buf, sha1_buf); in main()
186 free(sha1_buf); in main()
/external/selinux/policycoreutils/setfiles/
Drestorecon_xattr.c41 char *sha1_buf, **specfiles, *fc_file = NULL; in main() local
136 sha1_buf = malloc(fc_digest_len * 2 + 1); in main()
137 if (!sha1_buf) { in main()
146 sprintf((&sha1_buf[i * 2]), "%02x", fc_digest[i]); in main()
148 printf("specfiles SHA1 digest: %s\n", sha1_buf); in main()
155 free(sha1_buf); in main()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_disk_cache.c59 char sha1_buf[41]; in gen_shader_sha1() local
64 _mesa_sha1_format(sha1_buf, prog->sh.data->sha1); in gen_shader_sha1()
65 offset += snprintf(manifest, sizeof(manifest), "program: %s\n", sha1_buf); in gen_shader_sha1()
68 _mesa_sha1_format(sha1_buf, sha1); in gen_shader_sha1()
71 sha1_buf); in gen_shader_sha1()
129 char sha1_buf[41]; in read_and_upload() local
130 _mesa_sha1_format(sha1_buf, binary_sha1); in read_and_upload()
132 _mesa_shader_stage_to_abbrev(stage), sha1_buf); in read_and_upload()
138 char sha1_buf[41]; in read_and_upload() local
139 _mesa_sha1_format(sha1_buf, binary_sha1); in read_and_upload()
[all …]
/external/mesa3d/src/compiler/glsl/
Dshader_cache.cpp132 char sha1_buf[41]; in shader_cache_write_program_metadata() local
134 _mesa_sha1_format(sha1_buf, prog->data->sha1); in shader_cache_write_program_metadata()
135 fprintf(stderr, "putting program metadata in cache: %s\n", sha1_buf); in shader_cache_write_program_metadata()
Dglsl_parser_extras.cpp2275 char sha1_buf[41]; in _mesa_glsl_compile_shader() local
2278 _mesa_sha1_format(sha1_buf, shader->sha1); in _mesa_glsl_compile_shader()
2279 fprintf(stderr, "marking shader: %s\n", sha1_buf); in _mesa_glsl_compile_shader()
/external/selinux/libselinux/src/
Dselinux_restorecon.c296 char *sha1_buf = NULL; in add_xattr_entry() local
318 sha1_buf = malloc(digest_len * 2 + 1); in add_xattr_entry()
319 if (!sha1_buf) { in add_xattr_entry()
326 sprintf((&sha1_buf[i * 2]), "%02x", xattr_digest[i]); in add_xattr_entry()
348 free(sha1_buf); in add_xattr_entry()
356 free(sha1_buf); in add_xattr_entry()
360 new_entry->digest = strdup(sha1_buf); in add_xattr_entry()
364 free(sha1_buf); in add_xattr_entry()
378 free(sha1_buf); in add_xattr_entry()