package key-parsers

  1. Overview
  2. Docs
Parsers for multiple key formats

Install

dune-project
 Dependency

Authors

Maintainers

Sources

key-parsers-1.5.0.tbz
sha256=89d0453c28c2b17b6f04f92bee6e23e49b6a506c4b20368ca74cbd16b6543889
sha512=4efcf68cfc6b6d16a91f73efbb5fba68f55b449a6b5e8b47d2e0e7105fd48092d079920b6abf3f06d5c965da6bcd573800fe99a96ccacbdc31ace6d483044775

doc/src/key-parsers/derivable.ml.html

Source file derivable.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
let pp_of_to_string to_string fmt x = Format.pp_print_string fmt (to_string x)

module Z = struct
  type t = Z.t [@@deriving eq, ord]

  let show = Z.to_string

  let pp = pp_of_to_string show
end

module Cstruct = struct
  type t = Cstruct.t [@@deriving eq, ord]

  let to_hex_string cs =
    let (`Hex hs) = Hex.of_cstruct cs in
    hs

  let show = to_hex_string

  let pp = pp_of_to_string show
end

module Asn_oid = struct
  type t = Asn.OID.t [@@deriving eq, ord, show]
end