Dns.DnskeyDNS keys
A DNS key record (DNSKEY) specifies flags, algorithm, and key data.
val int_to_algorithm : int -> algorithmint_to_algorithm i decodes i to an algorithm.
val algorithm_to_int : algorithm -> intalgorithm_to_int a encodes a to an integer.
val pp_algorithm : algorithm Fmt.tpp_algorithm ppf a pretty-prints the algorithm.
The type of a DNSKEY record.
val pp : t Fmt.tpp ppf t pretty-prints the DNSKEY.
val of_string : string -> (t, [> `Msg of string ]) Stdlib.resultof_string str attempts to parse str to a dnskey. The colon character (:) is used as separator, supported format is: algorithm:keydata. Flags are not supported.
val to_string : t -> stringto_string key is a string where the colon character (:) is used as separator. The output is algorithm:keydata. Flags are not supported.
val name_key_of_string :
string ->
([ `raw ] Domain_name.t * t, [> `Msg of string ]) Stdlib.resultname_key_of_string str attempts to parse str to a domain name and a dnskey. The colon character (:) is used as separator.
val name_key_to_string : ([ `raw ] Domain_name.t * t) -> stringname_key_to_string (name, key) is a string name:algorithm:keydata. The colon character (:) is used as separater.
val digest_prep : [ `raw ] Domain_name.t -> t -> stringdigest_prep name key encodes name and key into a buffer, as preparation for computing its digest (for DS records).
val key_tag : t -> intkey_tag key computes the key tag (RFC 4034, Appendix B).