Home
last modified time | relevance | path

Searched refs:CHECKSUM_CONTENT_SIZE (Results 1 – 3 of 3) sorted by relevance

/external/selinux/libsemanage/src/
Dmodules.c982 const size_t CHECKSUM_CONTENT_SIZE = sizeof(CHECKSUM_TYPE) + 1 + 2 * SHA256_HASH_SIZE; variable
1011 *checksum_len = CHECKSUM_CONTENT_SIZE; in semanage_module_compute_checksum()
1028 checksum_str = malloc(CHECKSUM_CONTENT_SIZE + 1 /* '\0' */); in semanage_module_compute_checksum()
1035 *checksum_len = CHECKSUM_CONTENT_SIZE; in semanage_module_compute_checksum()
Dmodules.h105 extern const size_t CHECKSUM_CONTENT_SIZE;
Ddirect_api.c1071 if (sb.st_size != (off_t)CHECKSUM_CONTENT_SIZE) { in semanage_compare_checksum()
1078 data = mmap(NULL, CHECKSUM_CONTENT_SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in semanage_compare_checksum()
1085 retval = memcmp(data, reference, CHECKSUM_CONTENT_SIZE) != 0; in semanage_compare_checksum()
1097 return write_file(sh, path, checksum, CHECKSUM_CONTENT_SIZE); in semanage_write_modules_checksum()
1136 char modules_checksum[CHECKSUM_CONTENT_SIZE + 1 /* '\0' */]; in semanage_direct_commit()