Searched refs:SHA1_HASH_SIZE (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libselinux/src/ |
D | sha1.h | 35 #define SHA1_HASH_SIZE ( 160 / 8 ) macro 39 uint8_t bytes [SHA1_HASH_SIZE];
|
D | label_file.c | 1036 uint8_t read_digest[SHA1_HASH_SIZE]; in get_digests_all_partial_matches() 1038 read_digest, SHA1_HASH_SIZE in get_digests_all_partial_matches() 1043 uint8_t hash_digest[SHA1_HASH_SIZE]; in get_digests_all_partial_matches() 1049 *digest_len = SHA1_HASH_SIZE; in get_digests_all_partial_matches() 1051 if (read_size == SHA1_HASH_SIZE) { in get_digests_all_partial_matches() 1052 *xattr_digest = calloc(1, SHA1_HASH_SIZE + 1); in get_digests_all_partial_matches() 1056 memcpy(*xattr_digest, read_digest, SHA1_HASH_SIZE); in get_digests_all_partial_matches() 1060 *calculated_digest = calloc(1, SHA1_HASH_SIZE + 1); in get_digests_all_partial_matches() 1064 memcpy(*calculated_digest, hash_digest, SHA1_HASH_SIZE); in get_digests_all_partial_matches() 1067 if (status && read_size == SHA1_HASH_SIZE && in get_digests_all_partial_matches() [all …]
|
D | label_internal.h | 56 #define DIGEST_SPECFILE_SIZE SHA1_HASH_SIZE
|
D | selinux_restorecon.c | 739 uint8_t digest[SHA1_HASH_SIZE]; 1079 SHA1_HASH_SIZE, 0) < 0) { in selinux_restorecon()
|
D | sha1.c | 216 for (i = 0; i < SHA1_HASH_SIZE; i++) in Sha1Finalise()
|
/external/selinux/libselinux/src/android/ |
D | android_platform.c | 1369 uint8_t digest[SHA1_HASH_SIZE]; 1378 uint8_t read_digest[SHA1_HASH_SIZE]; in check_context_match_for_dir() 1380 read_digest, SHA1_HASH_SIZE); in check_context_match_for_dir() 1381 uint8_t calculated_digest[SHA1_HASH_SIZE]; in check_context_match_for_dir() 1389 if (!force && status && read_size == SHA1_HASH_SIZE && in check_context_match_for_dir() 1390 memcmp(read_digest, calculated_digest, SHA1_HASH_SIZE) == 0) { in check_context_match_for_dir() 1411 memcpy((*new_node)->digest, calculated_digest, SHA1_HASH_SIZE); in check_context_match_for_dir() 1609 SHA1_HASH_SIZE, 0) < 0) { in selinux_android_restorecon_common()
|