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.4.1.tbz
sha256=332886c365c6035077e3ce676a63da8f7500c15a1628b3c07e139b0e551f1f6f
sha512=cb8f4de93241cde0582bcd0283766c681a02dbcb9f3b4786eb0656c651f42ba2db467ff63bff79c5eacfd410e410d77dc31bfc51049c39e1e86685ec0a884c1f

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.