Subversion Repositories uuid_mac_utils

Compare Revisions

Regard whitespace Rev 57 → Rev 58

/trunk/includes/uuid_utils.inc.php
1172,8 → 1172,8
else if ($hash_uuid == RFC4122BIS_SHA3_256) $hash = hash('sha3-256', $payload);
else if ($hash_uuid == RFC4122BIS_SHA3_384) $hash = hash('sha3-384', $payload);
else if ($hash_uuid == RFC4122BIS_SHA3_512) $hash = hash('sha3-512', $payload);
else if ($hash_uuid == RFC4122BIS_SHAKE_128) $hash = shake128($payload);
else if ($hash_uuid == RFC4122BIS_SHAKE_256) $hash = shake256($payload);
else if ($hash_uuid == RFC4122BIS_SHAKE_128) $hash = shake128($payload, 16, false);
else if ($hash_uuid == RFC4122BIS_SHAKE_256) $hash = shake256($payload, 16, false);
else throw new Exception("Unknown hash UUID");
 
$hash[12] = '8'; // Set version: 8 = Custom
/trunk/index.php
327,9 → 327,9
document.getElementById("uuidv35_info").style.display = "block";
}
</script>
<pre id="uuidv35_info" style="display:none">Variant 1, Version 3/5 UUID:
<pre id="uuidv35_info" style="display:none">Variant 1, Version 3/5/8 UUID:
- 48 bit Hash High
- 4 bit Version (fix 0x3)
- 4 bit Version (fix 0x3, 0x5, or 0x8)
- 12 bit Hash Mid
- 2 bit Variant (fix 0b10)
- 62 bit Hash Low</pre></p>