package dkim

  1. Overview
  2. Docs

Module DkimSource

Sourcetype algorithm = [
  1. | `RSA
  2. | `ED25519
]
Sourcetype hash = [
  1. | `SHA1
  2. | `SHA256
]
Sourcetype canonicalization = [
  1. | `Simple
  2. | `Relaxed
]
Sourcetype query = [
  1. | `DNS of [ `TXT ]
]
Sourcetype hash_algorithm =
  1. | Hash_algorithm : 'k Digestif.hash -> hash_algorithm
Sourcetype hash_value =
  1. | Hash_value : 'k Digestif.hash * 'k Digestif.t -> hash_value
Sourcetype 'a t
Sourceand signed = private string * hash_value
Sourceand unsigned
Sourcetype key = [
  1. | `RSA of Mirage_crypto_pk.Rsa.priv
  2. | `ED25519 of Mirage_crypto_ec.Ed25519.priv
]
Sourceval v : ?version:int -> ?fields:Mrmime.Field_name.t list -> selector:[ `raw ] Domain_name.t -> ?algorithm:algorithm -> ?hash:hash -> ?canonicalization:(canonicalization * canonicalization) -> ?length:int -> ?query:query -> ?timestamp:int64 -> ?expiration:int64 -> [ `raw ] Domain_name.t -> unsigned t
Sourceval fields : 'a t -> Mrmime.Field_name.t list
Sourceval expire : 'a t -> int64 option
Sourceval body : signed t -> string
Sourceval domain : 'a t -> [ `raw ] Domain_name.t
Sourceval selector : 'a t -> [ `raw ] Domain_name.t
Sourceval domain_name : 'a t -> ([ `raw ] Domain_name.t, [> `Msg of string ]) result
Sourceval canonicalization : 'a t -> canonicalization * canonicalization
Sourceval hash_algorithm : 'a t -> hash_algorithm
Sourceval signature_and_hash : 'signed t -> 'signed
Sourceval algorithm : 'a t -> algorithm
Sourceval of_string : string -> (signed t, [> `Msg of string ]) result
Sourceval of_unstrctrd : Unstrctrd.t -> (signed t, [> `Msg of string ]) result
Sourceval with_canonicalization : 'a t -> (canonicalization * canonicalization) -> 'a t
Sourceval with_signature_and_hash : _ t -> 'signed -> 'signed t
Sourcetype domain_key
Sourceval domain_key_of_string : string -> (domain_key, [> `Msg of string ]) result
Sourceval domain_key_of_dkim : key:key -> _ t -> domain_key
Sourceval domain_key_to_string : domain_key -> string
Sourceval equal_domain_key : domain_key -> domain_key -> bool
Sourceval public_key : domain_key -> string
Sourcemodule Canon : sig ... end
Sourcemodule Digest : sig ... end
Sourcemodule Verify : sig ... end
Sourcemodule Encoder : sig ... end
Sourcemodule Sign : sig ... end
Sourcemodule Body : sig ... end
Sourcemodule Decoder : sig ... end

/

Sourcetype map
Sourceval field_dkim_signature : Mrmime.Field_name.t
Sourceval remove_signature_of_dkim : Unstrctrd.t -> Unstrctrd.t
Sourceval uniq : Unstrctrd.t -> Unstrctrd.t
Sourceval trim : Unstrctrd.t -> Unstrctrd.t
Sourceval of_unstrctrd_to_map : Unstrctrd.t -> (map, [> `Msg of string ]) result
Sourceval map_to_t : map -> (signed t, [> `Msg of string ]) result
Sourceval get_key : string -> map -> string option
OCaml

Innovation. Community. Security.