diff --git a/src/Generator/DceSecurityGenerator.php b/src/Generator/DceSecurityGenerator.php index 268fe44..91bfc4e 100644 --- a/src/Generator/DceSecurityGenerator.php +++ b/src/Generator/DceSecurityGenerator.php @@ -95,7 +95,12 @@ class DceSecurityGenerator implements DceSecurityGeneratorInterface } $domainByte = pack('n', $localDomain)[1]; - $identifierBytes = pack('N*', $localIdentifier->toString()); + $identifierBytes = hex2bin(str_pad( + $this->numberConverter->toHex($localIdentifier->toString()), + 8, + '0', + STR_PAD_LEFT + )); if ($node instanceof Hexadecimal) { $node = $node->toString();