Lines Matching refs:hash
194 static inline __init unsigned long rotate_xor(unsigned long hash, in rotate_xor() argument
197 const typeof(hash) *ptr = PTR_ALIGN(area, sizeof(hash)); in rotate_xor()
201 if (unlikely(size < diff + sizeof(hash))) in rotate_xor()
202 return hash; in rotate_xor()
204 size = ALIGN_DOWN(size - diff, sizeof(hash)); in rotate_xor()
206 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor()
208 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
209 hash ^= ptr[i]; in rotate_xor()
212 return hash; in rotate_xor()
218 unsigned long hash = 0; in get_random_boot() local
221 hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); in get_random_boot()
224 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
237 hash = rotate_xor(hash, prop, sizeof(*prop)); in get_random_boot()
242 return hash; in get_random_boot()