Lines Matching full:uuid
2 * Universally Unique IDentifier (UUID)
13 #include "uuid.h"
65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument
69 if (uuid[i]) in is_nil_uuid()
75 int uuid_random(u8 *uuid) in uuid_random() argument
81 * os_get_random() output in the UUID field. */ in uuid_random()
83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random()
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random()
87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random()
90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random()
93 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_random()