Home
last modified time | relevance | path

Searched refs:SHA1_HASH_SIZE (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libselinux/src/
Dsha1.h35 #define SHA1_HASH_SIZE ( 160 / 8 ) macro
39 uint8_t bytes [SHA1_HASH_SIZE];
Dlabel_file.c1068 uint8_t read_digest[SHA1_HASH_SIZE]; in get_digests_all_partial_matches()
1070 read_digest, SHA1_HASH_SIZE in get_digests_all_partial_matches()
1075 uint8_t hash_digest[SHA1_HASH_SIZE]; in get_digests_all_partial_matches()
1081 *digest_len = SHA1_HASH_SIZE; in get_digests_all_partial_matches()
1083 if (read_size == SHA1_HASH_SIZE) { in get_digests_all_partial_matches()
1084 *xattr_digest = calloc(1, SHA1_HASH_SIZE + 1); in get_digests_all_partial_matches()
1088 memcpy(*xattr_digest, read_digest, SHA1_HASH_SIZE); in get_digests_all_partial_matches()
1092 *calculated_digest = calloc(1, SHA1_HASH_SIZE + 1); in get_digests_all_partial_matches()
1096 memcpy(*calculated_digest, hash_digest, SHA1_HASH_SIZE); in get_digests_all_partial_matches()
1099 if (status && read_size == SHA1_HASH_SIZE && in get_digests_all_partial_matches()
[all …]
Dlabel_internal.h55 #define DIGEST_SPECFILE_SIZE SHA1_HASH_SIZE
Dsha1.c216 for (i = 0; i < SHA1_HASH_SIZE; i++) in Sha1Finalise()
Dselinux_restorecon.c780 uint8_t digest[SHA1_HASH_SIZE];
1286 SHA1_HASH_SIZE, 0) < 0) { in selinux_restorecon_common()
/external/selinux/libselinux/src/android/
Dandroid_device.c558 uint8_t digest[SHA1_HASH_SIZE];
567 uint8_t read_digest[SHA1_HASH_SIZE]; in check_context_match_for_dir()
569 read_digest, SHA1_HASH_SIZE); in check_context_match_for_dir()
570 uint8_t calculated_digest[SHA1_HASH_SIZE]; in check_context_match_for_dir()
578 if (!force && status && read_size == SHA1_HASH_SIZE && in check_context_match_for_dir()
579 memcmp(read_digest, calculated_digest, SHA1_HASH_SIZE) == 0) { in check_context_match_for_dir()
600 memcpy((*new_node)->digest, calculated_digest, SHA1_HASH_SIZE); in check_context_match_for_dir()
789 SHA1_HASH_SIZE, 0) < 0) { in selinux_android_restorecon_common()