package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type oid = Netoid.t
type alg_id =
  1. | Alg_id of oid * Netasn1.Value.value option
type pubkey = {
  1. pubkey_type : alg_id;
  2. pubkey_data : Netasn1.Value.bitstring_value;
}
type hash_function = [
  1. | `SHA_1
  2. | `SHA_224
  3. | `SHA_256
  4. | `SHA_384
  5. | `SHA_512
]
type maskgen_function = [
  1. | `MGF1 of hash_function
]
type alg_param =
  1. | P_PSS of hash_function * maskgen_function * int
  2. | P_OAEP of hash_function * maskgen_function * string
type encrypt_alg =
  1. | Encrypt of oid * alg_param option
type sign_alg =
  1. | Sign of oid * alg_param option
type kex_alg =
  1. | Kex of oid * alg_param option
val decode_pubkey_from_der : string -> pubkey
val encode_pubkey_to_der : pubkey -> string
val read_pubkey_from_pem : Netchannels.in_obj_channel -> pubkey
type privkey =
  1. | Privkey of string * string
val read_privkey_from_pem : Netchannels.in_obj_channel -> privkey
module Key : sig ... end
module Encryption : sig ... end
module Keyagreement : sig ... end
module Signing : sig ... end
OCaml

Innovation. Community. Security.