Lines Matching refs:hash
70 static inline __init unsigned long rotate_xor(unsigned long hash, in rotate_xor() argument
74 const typeof(hash) *ptr = PTR_ALIGN(area, sizeof(hash)); in rotate_xor()
77 if (size < diff + sizeof(hash)) in rotate_xor()
78 return hash; in rotate_xor()
80 size = ALIGN_DOWN(size - diff, sizeof(hash)); in rotate_xor()
82 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor()
84 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
85 hash ^= ptr[i]; in rotate_xor()
88 return hash; in rotate_xor()
93 unsigned long hash = 0; in get_random_boot() local
97 hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); in get_random_boot()
100 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
102 return hash; in get_random_boot()