package mirage-crypto-pk

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mirage-crypto-2.0.3.tbz
sha256=3919a8bda3635959bb662d4ffa32266eb73c450ecc2a2b66ba5e1ecf88f7ad23
sha512=0580c8787cac821531c6038b9f82d32f6a7d3beee0b4c6900c2bf9fa3fa1b2a8d460b4d53ade8cd03e5e8e968b85f2c870c17818ad6e0f12d6834da92db4bef8

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.