Lines Matching refs:uuid
13 #include "uuid.h"
65 int is_nil_uuid(const u8 *uuid)
69 if (uuid[i])
75 int uuid_random(u8 *uuid)
83 if (os_get_random(uuid, UUID_LEN) < 0 ||
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0)
87 os_memcpy(uuid, hash, UUID_LEN);
90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f);
93 uuid[8] = 0x80 | (uuid[8] & 0x3f);