Lines Matching refs:digest
71 struct selabel_digest *digest) in selabel_subs_init() argument
126 if (digest_add_specfile(digest, cfg, NULL, sb.st_size, path) < 0) in selabel_subs_init()
144 struct selabel_digest *digest = NULL; in selabel_is_digest_set() local
149 digest = calloc(1, sizeof(*digest)); in selabel_is_digest_set()
150 if (!digest) in selabel_is_digest_set()
153 digest->digest = calloc(1, DIGEST_SPECFILE_SIZE + 1); in selabel_is_digest_set()
154 if (!digest->digest) in selabel_is_digest_set()
157 digest->specfile_list = calloc(DIGEST_FILES_MAX, in selabel_is_digest_set()
159 if (!digest->specfile_list) in selabel_is_digest_set()
162 entry = digest; in selabel_is_digest_set()
169 free(digest->digest); in selabel_is_digest_set()
170 free(digest->specfile_list); in selabel_is_digest_set()
171 free(digest); in selabel_is_digest_set()
179 free(ptr->digest); in selabel_digest_fini()
338 rec->digest = selabel_is_digest_set(opts, nopts, rec->digest); in selabel_open()
446 unsigned char **digest, size_t *digest_len, in selabel_digest() argument
449 if (!rec->digest) { in selabel_digest()
454 *digest = rec->digest->digest; in selabel_digest()
456 *specfiles = rec->digest->specfile_list; in selabel_digest()
457 *num_specfiles = rec->digest->specfile_cnt; in selabel_digest()
465 if (rec->digest) in selabel_close()
466 selabel_digest_fini(rec->digest); in selabel_close()