module Netsys_digests:sig
..end
typeiana_hash_fn =
[ `MD2 | `MD5 | `SHA_1 | `SHA_224 | `SHA_256 | `SHA_384 | `SHA_512 ]
class type digest_ctx =object
..end
class type digest =object
..end
Netsys_crypto.current_digests
), unless the impl
argument is
passed.val digests : ?impl:(module Netsys_crypto_types.DIGESTS) ->
unit -> digest list
val find : ?impl:(module Netsys_crypto_types.DIGESTS) -> string -> digest
find name
: get the digest name
.
The name conventionally follows the <uppercasestring>-<size>
format,
e.g. "MD5-128", "SHA1-160", or "SHA2-256".
val digest_tstring : digest -> Netsys_types.tstring -> string
val digest_bytes : digest -> Bytes.t -> string
val digest_string : digest -> string -> string
val digest_mstrings : digest -> Netsys_types.mstring list -> string
val hmac : digest -> string -> digest
hmac dg key
: returns the digest context computing the HMAC
construction (RFC-2104).
The key must not be longer than dg#block_length.
val iana_find : ?impl:(module Netsys_crypto_types.DIGESTS) ->
iana_hash_fn -> digest
iana_find name
: get the digest name
val iana_alist : (string * iana_hash_fn) list
val iana_rev_alist : (iana_hash_fn * string) list
val oid_alist : (int array * iana_hash_fn) list
val oid_rev_alist : (iana_hash_fn * int array) list
val name_alist : (string * iana_hash_fn) list
val name_rev_alist : (iana_hash_fn * string) list