package mirage-crypto-pk

  1. Overview
  2. Docs
Simple public-key cryptography for the modern age

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-crypto-2.0.1.tbz
sha256=5430ce3c3e40627d2d67a8decf565a1f612d39bdb33f9b767c3bdb601ff5a196
sha512=de029e01cbb8d49f9b8fbcd02ef4777435927118c9ce7a859a8193fdbec30d1a7b3a2964ee8ec722f5fa74fec1bfdc054dcdc97ad1db6e2ced359d6c010c043a

doc/mirage-crypto-pk/Mirage_crypto_pk/index.html

Module Mirage_crypto_pkSource

Public-key cryptography

Public and private key types are private, the constructors validate their well-formedness as much as possible, esp. so that powm_sec will not raise an exception (exponent > 1, or odd modulus). All modular exponentiations (unless otherwise noted) use the Z.powm_sec function, which uses a static access pattern and operates in constant time (of the bit size of the input), independent of which bits are set and not set. The performance is up to 20% worse than powm. Additionally, blinding is applied to RSA and DSA by default.

Sourcemodule Rsa : sig ... end

RSA public-key cryptography algorithm.

Sourcemodule Dsa : sig ... end

DSA digital signature algorithm.

Sourcemodule Dh : sig ... end

Diffie-Hellman, MODP version.

Sourcemodule Z_extra : sig ... end

Z Convert Z to big endian string and generate random Z values.

OCaml

Innovation. Community. Security.