package awa

  1. Overview
  2. Docs

Module Awa.HostkeySource

Sourcetype priv =
  1. | Rsa_priv of Mirage_crypto_pk.Rsa.priv
  2. | Ed25519_priv of Mirage_crypto_ec.Ed25519.priv
Sourcetype pub =
  1. | Rsa_pub of Mirage_crypto_pk.Rsa.pub
  2. | Ed25519_pub of Mirage_crypto_ec.Ed25519.pub
Sourceval pub_eq : pub -> pub -> bool
Sourceval pub_of_priv : priv -> pub
Sourceval sshname : pub -> string
Sourceval comptible_alg : pub -> string -> bool
Sourcetype alg =
  1. | Rsa_sha1
  2. | Rsa_sha256
  3. | Rsa_sha512
  4. | Ed25519
Sourceval hash : alg -> [> `SHA1 | `SHA256 | `SHA512 ]
Sourceval alg_of_string : string -> (alg, string) result
Sourceval alg_to_string : alg -> string
Sourceval preferred_algs : alg list
Sourceval algs_of_typ : [< `Ed25519 | `Rsa ] -> alg list
Sourceval priv_to_typ : priv -> [> `Ed25519 | `Rsa ]
Sourceval alg_matches : [< `Ed25519 | `Rsa ] -> alg -> bool
Sourceval signature_equal : Cstruct.t -> Cstruct.t -> bool
Sourceval sign : alg -> priv -> Cstruct.t -> Cstruct.t
Sourceval verify : alg -> pub -> unsigned:Cstruct.t -> signed:Cstruct.t -> bool
OCaml

Innovation. Community. Security.