Lines Matching defs:hash
327 * @param buf: returned buffer with hash to lookup
335 uint8_t hash[CACHEDB_HASHSIZE/8];
340 /* copy the hash info into the clear buffer */
358 /* hash the buffer */
359 secalgo_hash_sha256(clear, clen, hash);
368 log_assert(len >= sizeof(hash)*2 + 1);
370 for(i=0; i<sizeof(hash); i++) {
371 buf[i*2] = hex[(hash[i]&0xf0)>>4];
372 buf[i*2+1] = hex[hash[i]&0x0f];
374 buf[sizeof(hash)*2] = 0;