Skip to content

Commit ba7ff8c

Browse files
evverxgpotter2
authored andcommitted
DNS: update DNSSEC algorithm numbers
The patch was cross-checked with Wireshark: ``` tdecode(Ether()/IP()/UDP()/DNS(ar=[DNSRROPT(rdata=[EDNS0DAU(alg_code=['Ed25519', 'Ed448'])])])) ... Option: DAU - DNSSEC Algorithm Understood (RFC6975) Option Code: DAU - DNSSEC Algorithm Understood (RFC6975) (5) Option Length: 2 Option Data: 0f10 DAU: Ed25519 (15) DAU: Ed448 (16) ``` It's a follow-up to 0dd08cd
1 parent a3f2cb1 commit ba7ff8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scapy/layers/dns.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,17 @@
9090
dnsclasses = {1: 'IN', 2: 'CS', 3: 'CH', 4: 'HS', 255: 'ANY'}
9191

9292

93-
# 09/2013 from http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml # noqa: E501
93+
# 12/2023 from https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml # noqa: E501
9494
dnssecalgotypes = {0: "Reserved", 1: "RSA/MD5", 2: "Diffie-Hellman", 3: "DSA/SHA-1", # noqa: E501
9595
4: "Reserved", 5: "RSA/SHA-1", 6: "DSA-NSEC3-SHA1",
9696
7: "RSASHA1-NSEC3-SHA1", 8: "RSA/SHA-256", 9: "Reserved",
9797
10: "RSA/SHA-512", 11: "Reserved", 12: "GOST R 34.10-2001",
9898
13: "ECDSA Curve P-256 with SHA-256", 14: "ECDSA Curve P-384 with SHA-384", # noqa: E501
99+
15: "Ed25519", 16: "Ed448",
99100
252: "Reserved for Indirect Keys", 253: "Private algorithms - domain name", # noqa: E501
100101
254: "Private algorithms - OID", 255: "Reserved"}
101102

102-
# 09/2013 from http://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
103+
# 12/2023 from https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
103104
dnssecdigesttypes = {0: "Reserved", 1: "SHA-1", 2: "SHA-256", 3: "GOST R 34.11-94", 4: "SHA-384"} # noqa: E501
104105

105106
# 12/2023 from https://www.iana.org/assignments/dnssec-nsec3-parameters/dnssec-nsec3-parameters.xhtml # noqa: E501

0 commit comments

Comments
 (0)