package brr

  1. Overview
  2. Docs
On This Page
  1. Key pairs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Brr_webcrypto.Crypto_keySource

CryptoKey interface.

Sourcemodule Type : sig ... end

The key type enumeration.

Sourcemodule Usage : sig ... end

The key usage enumeration.

Sourcemodule Format : sig ... end

The key format enumeration.

Sourcetype algo

Forward declaration of Crypto_algo.t

Sourcetype t

The type for CryptoKey object.

Sourceval type' : t -> Type.t

type' k is the type of the key.

Sourceval extractable : t -> bool

extractable k indicates if k can be extracted with Subtle_crypto.export_key or Subtle_crypto.wrap_key.

Sourceval algorithm : t -> algo

algorithm k describes the algorithm for which this can be used an associated parameters.

Sourceval usages : t -> Usage.t list

uages k indicates what can be done with the key.

Key pairs

Sourcetype pair

The type for CryptoKeyPair objects.

Sourceval public : pair -> t

public pair is the public key of pair.

Sourceval private' : pair -> t

private' pair is the private key of pair.