Rev 67 | Rev 69 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 67 | Rev 68 | ||
---|---|---|---|
Line 350... | Line 350... | ||
350 | 350 | ||
351 | <u>As defined by <a href="https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/">draft-ietf-uuidrev-rfc4122bis-11</a> Appendix B:</u> |
351 | <u>As defined by <a href="https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/">draft-ietf-uuidrev-rfc4122bis-11</a> Appendix B:</u> |
352 | <?php |
352 | <?php |
353 | 353 | ||
354 | $tmp = []; |
354 | $tmp = []; |
355 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available)) { |
355 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available,$oid)) { |
356 | if (strpos($author,'ViaThinkSoft') === false) { |
356 | if (strpos($author,'ViaThinkSoft') === false) { |
357 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
357 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
358 | $line .= ':= "'.$space.'".'; |
358 | $line .= ':= "'.$space.'".'; |
359 | if (!$available) $line .= " (Currently not available on this system)"; |
359 | if (!$available) $line .= " (Currently not available on this system)"; |
360 | $line .= "\n"; |
360 | $line .= "\n"; |
Line 373... | Line 373... | ||
373 | HashSpaceUuid<<i>HashAlgo</i>> := UUIDv5(NS_OID, OID[<i>HashAlgo</i>]). |
373 | HashSpaceUuid<<i>HashAlgo</i>> := UUIDv5(NS_OID, OID[<i>HashAlgo</i>]). |
374 | which results in the following UUIDs: |
374 | which results in the following UUIDs: |
375 | <?php |
375 | <?php |
376 | 376 | ||
377 | $tmp = []; |
377 | $tmp = []; |
378 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available)) { |
378 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available,$oid)) { |
379 | if (strpos($author,'ViaThinkSoft') === false) { |
379 | if (strpos($author,'ViaThinkSoft') === false) { |
380 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
380 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
- | 381 | if ($oid != null) $line .= str_pad(':= UUIDv5(NS_OID, "'.$oid.'")', 46, ' ', STR_PAD_RIGHT); |
|
- | 382 | if ($oid == null) $line .= str_pad(':= UUIDv5(NS_PHPNAME, "'.$algo.'")', 46, ' ', STR_PAD_RIGHT); |
|
381 | $line .= ':= "'.$space.'".'; |
383 | $line .= '= "'.$space.'".'; |
382 | if (!$available) $line .= " (Currently not available on this system)"; |
384 | if (!$available) $line .= " (Currently not available on this system)"; |
383 | $line .= "\n"; |
385 | $line .= "\n"; |
384 | $tmp[$friendlyName] = $line; |
386 | $tmp[$friendlyName] = $line; |
385 | } |
387 | } |
386 | } |
388 | } |
Line 390... | Line 392... | ||
390 | } |
392 | } |
391 | 393 | ||
392 | ?> |
394 | ?> |
393 | 395 | ||
394 | <u>As defined by ViaThinkSoft for all other algorithms:</u> |
396 | <u>As defined by ViaThinkSoft for all other algorithms:</u> |
- | 397 | HashSpaceUuid<<i>HashAlgo</i>> := UUIDv5(NS_OID, OID[<i>HashAlgo</i>]). |
|
- | 398 | or in case no OID can be found: |
|
395 | HashSpaceUuid<<i>HashAlgo</i>> := UUIDv5("1ee317e2-1853-64b2-8fe9-3c4a92df8582", <a href="https://www.php.net/manual/de/function.hash-algos.php">PhpName</a>[<i>HashAlgo</i>]). |
399 | HashSpaceUuid<<i>HashAlgo</i>> := UUIDv5(NS_PHPNAME="1ee317e2-1853-64b2-8fe9-3c4a92df8582", <a href="https://www.php.net/manual/de/function.hash-algos.php">PhpName</a>[<i>HashAlgo</i>]). |
396 | which results in the following UUIDs: |
400 | which results in the following UUIDs: |
397 | <?php |
401 | <?php |
398 | 402 | ||
399 | $tmp = []; |
403 | $tmp = []; |
400 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available)) { |
404 | foreach (get_uuidv8_hash_space_ids() as list($algo,$space,$friendlyName,$author,$available,$oid)) { |
401 | if (strpos($author,'ViaThinkSoft') !== false) { |
405 | if (strpos($author,'ViaThinkSoft') !== false) { |
402 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
406 | $line = str_pad('HashSpaceUuid<'.htmlentities($friendlyName).'>', 34, ' ', STR_PAD_RIGHT); |
- | 407 | if ($oid != null) $line .= str_pad(':= UUIDv5(NS_OID, "'.$oid.'")', 53, ' ', STR_PAD_RIGHT); |
|
- | 408 | if ($oid == null) $line .= str_pad(':= UUIDv5(NS_PHPNAME, "'.$algo.'")', 53, ' ', STR_PAD_RIGHT); |
|
403 | $line .= ':= "'.$space.'".'; |
409 | $line .= '= "'.$space.'".'; |
404 | if (!$available) $line .= " (Currently not available on this system)"; |
410 | if (!$available) $line .= " (Currently not available on this system)"; |
405 | $line .= "\n"; |
411 | $line .= "\n"; |
406 | $tmp[$friendlyName] = $line; |
412 | $tmp[$friendlyName] = $line; |
407 | } |
413 | } |
408 | } |
414 | } |