Skip to content

0.18.0 - 2019-05-11

Compare
Choose a tag to compare
@Synss Synss released this 11 May 12:04
· 588 commits to master since this release

Add secrets (PEP-506) module with CSPRNG

  • secrets: Add PEP-506 conform secrets module for generating secrets.
  • cipher/hash/hmac: These modules and packages are now pure-Python.
  • mpi: Add bitwise operations.

API Changes

  • pk.ECDHNaive: generate() returns the public key as an ECPoint and
    import_peers_public() now takes an ECPoint. import_peer_public(MPI)
    is deprecated and will be removed in a future release. Further note
    the s in import_peers_public().
  • pk: Make ECDH*.{public_key,private_key,peers_public_key} public. The
    private equivalents with a _* prefix are deprecated and will be removed in a
    future release. Further note the s in peers_public_key.
  • _random: Privatize Entropy and refactor Random class.

Bugfixes

  • mpi: Fix bug in mpi.to_bytes().

Misc.

  • *: Format Python files with black
  • ci: Check that the docs build in CI.
  • ci: Repair test coverage measurements on coveralls.
  • mpi: Simplify code for comparisons.
  • mpi: Add tests and better exceptions for __pow__().