Lines Matching refs:hash
893 elfsign_hash_common(ELFsign_t ess, uchar_t *hash, size_t *hash_len,
901 /* The buffer must be large enough to hold the hash */
905 bzero(hash, *hash_len);
945 * throw this section into the hash
956 cryptodebug("elfsign_hash: updating hash "
967 SHA1Final(hash, &ctx);
974 tohexstr(hash, *hash_len, hashstr, hashstr_len);
975 cryptodebug("hash value is: %s", hashstr);
985 * elfsign_hash - return the hash of the ELF sections affecting execution.
988 * OUT: hash, hash_len
991 elfsign_hash(ELFsign_t ess, uchar_t *hash, size_t *hash_len)
993 return (elfsign_hash_common(ess, hash, hash_len, B_FALSE));
997 * elfsign_hash_mem_resident - return the hash of the ELF sections
1001 * OUT: hash, hash_len
1004 elfsign_hash_mem_resident(ELFsign_t ess, uchar_t *hash, size_t *hash_len)
1006 return (elfsign_hash_common(ess, hash, hash_len, B_TRUE));
1026 uchar_t hash[SIG_MAX_LENGTH];
1126 * compute file hash
1128 hash_len = sizeof (hash);
1129 if (elfsign_hash(ess, hash, &hash_len) != ELFSIGN_SUCCESS) {
1149 fsx.fsx_signature, fsx.fsx_sig_len, hash, hash_len)) {