Skip to content

Wrong DS-code and key if algorithm > 9 #1

Description

@webservicebe

line 67 of dnssec-key2ds/dnssec_key2ds.php
$algorithm_hex = sprintf("%02d", dechex($algorithm));

If algorithm 13 is used you end-up with "00" instead of "0d"
Correct by replacing line 67 to:
$algorithm_hex = '0'.dechex($algorithm);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions