package krb
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=d0b4b946f4e53dff9091d2d02a235e861ab5ad9d64638b17ba1834dedfb4f53d
doc/krb.internal/Krb_internal_public/Keyblock/index.html
Module Krb_internal_public.Keyblock
Source
krb5_keyblock
An encryption type together with some key for that encryption type.
include Core.Comparable.S_plain with type t := t
include Base.Comparable.S with type t := t
compare t1 t2
returns 0 if t1
is equal to t2
, a negative integer if t1
is less than t2
, and a positive integer if t1
is greater than t2
.
ascending
is identical to compare
. descending x y = ascending y x
. These are intended to be mnemonic when used like List.sort ~compare:ascending
and List.sort ~cmp:descending
, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max
returns t'
, the closest value to t
such that between t' ~low:min ~high:max
is true.
Raises if not (min <= max)
.
val comparator : (t, comparator_witness) Base__.Comparator.comparator
module Map :
Core.Map.S_plain
with type Key.t = t
with type Key.comparator_witness = comparator_witness
module Set :
Core.Set.S_plain
with type Elt.t = t
with type Elt.comparator_witness = comparator_witness
Derive a keyblock from (1) the principal's password and (2) a salt value to make it likely that even principals with the same password end up with different encryption keys.
val create_from_key_data :
enctype:Enctype.t ->
Core.Bigstring.t ->
t Async.Deferred.Or_error.t
Create a keyblock from raw key data.
val decrypt :
t ->
usage:Key_usage_number.t ->
enctype:Enctype.t ->
kvno:int ->
Core.Bigsubstring.t ->
Core.Bigstring.t Async.Deferred.Or_error.t