Skip to main content

Crate hns_dnssec

Crate hns_dnssec 

Source
Expand description

Local, bounded DNSSEC RRset, delegation, and denial validation.

This crate does not consult a recursive resolver and never trusts the DNS AD bit. Callers provide parsed records and an explicit validation time.

Structs§

AuthenticatedDnskeys
A DNSKEY RRset authenticated through a local DS chain.
DnssecLimits
Browser DNSSEC resource bounds.
SignedRrset
Borrowed data records plus their covering RRSIG records.
VerifiedRrset
A locally verified RRset signature.

Enums§

Denial
Authenticated denial result.
DnssecError
Local DNSSEC validation failure.

Constants§

ALGORITHM_ECDSA_P256_SHA256
ECDSA P-256/SHA-256.
ALGORITHM_ECDSA_P384_SHA384
ECDSA P-384/SHA-384.
ALGORITHM_ED448
Ed448.
ALGORITHM_ED25519
Ed25519.
ALGORITHM_RSASHA1
RSA/SHA-1.
ALGORITHM_RSASHA1_NSEC3
RSA/SHA-1 with NSEC3.
ALGORITHM_RSASHA256
RSA/SHA-256.
ALGORITHM_RSASHA512
RSA/SHA-512.

Functions§

authenticate_child_dnskeys
Authenticate a child delegation and its DNSKEY RRset from parent keys.
authenticate_dnskeys
Authenticate a zone DNSKEY RRset from already trusted DS records.
dnskey_tag
Compute the RFC 4034 DNSKEY key tag.
nsec3_hash
Compute the RFC 5155 SHA-1 NSEC3 hash with bounded iterations.
rrsig_signed_data
Produce RFC 4034 canonical bytes covered by an RRSIG.
verify_ds
Verify that at least one class-IN DS record authenticates a DNSKEY.
verify_nsec3_denial
Verify an already signature-authenticated NSEC3 no-data or name-error proof.
verify_nsec_denial
Verify an already signature-authenticated NSEC proof.
verify_rrset
Verify one RRset against locally authenticated DNSKEY records.
verify_rrset_with_keys
Verify an RRset with a DS-authenticated zone keyset.