package brr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Brr_webcrypto.Crypto_algoSource

Algorithm interface and subtypes.

Note. In algorithm objects properties with BufferSources often occur. This brings a bit of complexity for accessors so we require and return Brr.Tarray.Buffer.t for these (it also means the accessor are type unsafe on objects not generated by these modules).

Sourcetype big_integer = Brr.Tarray.uint8

The type for big integers. Holds an arbitrary magnitude integer in big endian order.

The type for the Algorithm objects.

Sourcetype algo = t

See t.

Sourceval v : Jstr.t -> t

v n is an algorithm object with name n.

Sourceval name : t -> Jstr.t

name a is the name of the algorithm.

RSASSA-PKCS1-v1_5

Sourceval rsassa_pkcs1_v1_5 : Jstr.t

The name for RSASSA-PKCS1-v1_5.

Sourcemodule Rsa_hashed_key_gen_params : sig ... end

RSA key generation parameters.

Sourcemodule Rsa_hashed_import_params : sig ... end

RSA key import parameters.

RSA-PSS

Sourceval rsa_pss : Jstr.t

The name for RSA-PSS.

Sourcemodule Rsa_pss_params : sig ... end

RSA-PSS parameters.

RSA-OAEP

Sourceval rsa_oaep : Jstr.t

The name for RSA-OAEP.

Sourcemodule Rsa_oaep_params : sig ... end

RSA-OAEP parameters.

ECDSA

Sourceval ecdsa : Jstr.t

The name for ECDSA.

Sourcemodule Ec_key_gen_params : sig ... end

ECDSA key generation parameters.

Sourcemodule Ec_key_import_params : sig ... end

ECDSA key import parameters.

Sourcemodule Ecdsa_params : sig ... end

ECDSA signing parameters.

ECDH

Sourceval ecdh : Jstr.t

The name for ECDH.

Sourcemodule Ecdh_key_derive_params : sig ... end

ECDH key derivation parameters.

AES-CTR

Sourceval aes_ctr : Jstr.t

The name for AES-CTR.

Sourcemodule Aes_key_gen_params : sig ... end

AES key generation paramaters

Sourcemodule Aes_ctr_params : sig ... end

AES encryption parameters.

AES-CBC

Sourceval aes_cbc : Jstr.t

The name for AES-CBC.

Sourcemodule Aes_cbc_params : sig ... end

AES CBC encryption parameters.

AES-GCM

Sourceval aes_gcm : Jstr.t

The name for AES-GCM.

Sourcemodule Aes_gcm_params : sig ... end

AES GCM encryption parameters.

AES-KW

Sourceval aes_kw : Jstr.t

The name for AES-KW.

HMAC

Sourceval hmac : Jstr.t

The name for HMAC.

Sourcemodule Hmac_key_gen_params : sig ... end

HMAC key generation parameters.

Sourcemodule Hmac_import_params : sig ... end

HMAC key import parameters.

SHA

Sourceval sha_1 : Jstr.t

The name for SHA-1.

Sourceval sha_256 : Jstr.t

The name for SHA-256.

Sourceval sha_384 : Jstr.t

The name for SHA-384.

Sourceval sha_512 : Jstr.t

The name for SHA-512.

HKDF

Sourceval hkdf : Jstr.t

The name for HKDF.

Sourcemodule Hkdf_params : sig ... end

HKDF key derivation parameters.

PBKDF2

Sourceval pbkdf2 : Jstr.t

The name for PBKDF2.

Sourcemodule Pbkdf2_params : sig ... end

PBKFD2 key derivation parameters.

OCaml

Innovation. Community. Security.