Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 8 of 8) sorted by relevance

/security/tomoyo/
Dmemory.c150 unsigned int hash; in tomoyo_get_name() local
157 hash = full_name_hash((const unsigned char *) name, len - 1); in tomoyo_get_name()
158 head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)]; in tomoyo_get_name()
162 if (hash != ptr->entry.hash || strcmp(name, ptr->entry.name) || in tomoyo_get_name()
Dcommon.h502 u32 hash; /* = full_name_hash(name, strlen(name)) */ member
1153 return a->hash != b->hash || strcmp(a->name, b->name); in tomoyo_pathcmp()
Dutil.c669 ptr->hash = full_name_hash(name, len); in tomoyo_fill_path_info()
/security/integrity/ima/
Dima_api.c215 char hash[(IMA_DIGEST_SIZE * 2) + 1]; in ima_audit_measurement() local
222 hex_byte_pack(hash + (i * 2), iint->ima_xattr.digest[i]); in ima_audit_measurement()
223 hash[i * 2] = '\0'; in ima_audit_measurement()
233 audit_log_untrustedstring(ab, hash); in ima_audit_measurement()
Dima_queue.c89 static int ima_pcr_extend(const u8 *hash) in ima_pcr_extend() argument
96 result = tpm_pcr_extend(TPM_ANY_NUM, CONFIG_IMA_MEASURE_PCR_IDX, hash); in ima_pcr_extend()
DKconfig17 Measurement Architecture(IMA) maintains a list of hash
67 attribute containing the file hash measurement. To protect
/security/keys/
Dtrusted.c379 unsigned char hash[SHA1_DIGEST_SIZE]; in pcrlock() local
384 ret = tpm_get_random(TPM_ANY_NUM, hash, SHA1_DIGEST_SIZE); in pcrlock()
387 return tpm_pcr_extend(TPM_ANY_NUM, pcrnum, hash) ? -EINVAL : 0; in pcrlock()
/security/selinux/ss/
Dpolicydb.c210 unsigned long hash; in filenametr_hash() local
214 hash = ft->stype ^ ft->ttype ^ ft->tclass; in filenametr_hash()
218 hash = partial_name_hash(focus, hash); in filenametr_hash()
219 return hash & (h->size - 1); in filenametr_hash()