package krb
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=353675621e4c5a888f2483dc1bb7281bd17ce4ed7dfd2f40142257f98db7c77d
doc/krb.internal/Krb_internal_public/Keyblock/index.html
Module Krb_internal_public.KeyblockSource
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.comparatormodule Map :
Core.Map.S_plain
with type Key.t = t
with type Key.comparator_witness = comparator_witnessmodule Set :
Core.Set.S_plain
with type Elt.t = t
with type Elt.comparator_witness = comparator_witnessDerive 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.tCreate 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