An opinionated Domain Name System (DNS) library
Library dns
Module Dns . Ds
type digest_type =
| SHA1
| SHA256
| SHA384
| Unknown of int(*

The type of supported digest algorithms.

val digest_type_to_int : digest_type -> int

digest_type_to_int d encodes the digest type d to an integer.

val int_to_digest_type : int -> digest_type

int_to_digest_type i decodes the integer i to a digest type.

  • raises Invalid_argument

    if i does not fit in one octet.

val pp_digest_type : digest_type Fmt.t

pp_digest_type ppf d pretty-prints digest type d on ppd.

type t = {
key_tag : int;
algorithm : Dnskey.algorithm;
digest_type : digest_type;
digest : Cstruct.t;

The type of delegation signer resource records.

val pp : t Fmt.t

pp ppf t pretty-prints the DS.

val compare : t -> t -> int

compare a b compares the DS a with b.