Lines Matching defs:h*h
54 // data; they have no bearing on the actual hash slots in the CodeDirectory.
127 // a Bad Guy could overlap the identifier and hash fields, which is nonsense
149 MacOSError::throwMe(errSecCSSignatureFailed); // hash array out of blob range
160 if (!contains((*this)[pagesConsumed-1], hashSize)) // referenced too many main hash slots
194 // Absense is indicated by either a zero hash, or by lying outside
210 // Given a hash type code, create an appropriate subclass of DynamicHash
230 // If the file is shorter, hash as much as you can.
244 // Ditto, but hash a memory buffer instead.
255 // Turn a hash of canonical type into a hex string
257 std::string CodeDirectory::hexHash(const unsigned char *hash) const
262 sprintf(result+2*n, "%02.2x", hash[n]);
274 return "I" + hexHash((*this)[-cdInfoSlot]); // use Info.plist hash
276 return "M" + hexHash((*this)[0]); // use hash of main executable