i'm trying to find some test vectors to check my implementation of RFC 4122 of UUID version 5.
4.3 Algorithm for Creating a Name-Based UUID
Version 3 of a UUID is for putting an MD5 hash into a GUID.
Version 5 of a UUID is for putting an SHA1 hash into a GUID.
The RFC has sample implementation in C:
void uuid_create_sha1_from_name(
uuid_t *uuid, /* resulting UUID */
uuid_t nsid, /* UUID of the namespace */
void *name, /* the name from which to generate a UUID */
int namelen /* the length of the name */
);
i've written my own implementation in the language that i'm using. Considering the amount of headaches caused by endian vs network order, i am sure my implementation is wrong.
i'd like some sample data, e.g.:
uuid = NameToGUID(
{6ba7b811-9dad-11d1-80b4-00c04fd430c8}, //Namespace_URL
"https://stackoverflow.com/questions/5515880"); //a url
CheckEquals(
{8ABAD867-F515-3CF6-BB62-5F0C88B3BB11}, //expected uuid
uuid);