I am using the funcitons in windows and generating a SHA-1 hash.
Here is part of the function I am using, its not the entire fucntion but this function returns a GUID.
GUID guid;
res = CryptGetHashParam(hHash, HP_HASHVAL, (BYTE*)&guid, &dwHashLen, 0);
I am pretty sure it works but I need to unit test it as its in a very sinseitive part of our code base.
What I would like to be able to do is either find a test vector of some sample strings hashed to GUID or else find a way of convering the GUID to a string.
The test data I use is taken from the site https://www.di-mgt.com.au/sha_testvectors.html
so
hashing the string "abc" using SHA-1 should yield
a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d
hashing the string
abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
should yield 84983e44 1c3bd26e baae4aa1 f95129e5 e54670f1