BSD Ports

security/py-cryptodome 4.1.0 OpenBSD

self-contained cryptographic library for Python

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Stuart Henderson <[email protected]>
Last update
Commit
35dac955ce
Categories
security, lang/python

Description

PyCryptodome is a self-contained Python package of low-level cryptographic primitives. It is an cleaned and simplified fork of PyCrypto, exposing almost the same API. Most applications run unmodified, apart from a very few compatibility breaks for those parts of the API that represented a security hazard or that were too hard to maintain.

PyCryptodome is not a wrapper to a separate C library like OpenSSL. To the largest possible extent, algorithms are implemented in pure Python. Only the pieces that are extremely critical to performance (e.g. block ciphers) are implemented as C extensions.

As well as functionality supported by PyCrypto, this adds support for:

  • Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
  • Elliptic curves cryptography (NIST P-256 curve only)
  • SHA-3 (including SHAKE XOFs), SHA-512/t and BLAKE2 hash algorithms
  • Salsa20 and ChaCha20 stream ciphers
  • scrypt and HKDF
  • Deterministic (EC)DSA

In the other systems

SystemPortVersion
OpenBSDsecurity/py-cryptodome4.1.0
NetBSDsecurity/py-cryptodome3.23.0

Install

Binary package:

pkg_add py3-cryptodome

From the ports tree:

cd /usr/ports/security/py-cryptodome && make install

Dependencies

Build dependencies 5
Run dependencies 1

Commit history 7

DateCommitCreditsLog message
35dac955ce sthen set PKGSPEC for test vectors
81e17d6889 sthen update to py3-cryptodome-4.1.0, amongst other things this adds native and AVX2+BMI2 code for MLDSA. https://www.pycryptodome.org/src/changelog
9a04711654 sthen update to py3-cryptodome-4.0.1
06c620b372 sthen fix cryptodome plists for cpu-optimized files on !amd64; i386 doesn't build avx2/bmi optimized versions, other archs don't build opt.
033881c18f sthen update to py3-cryptodome-4.0.0, this is a nice major update with a move away from GMP to their own constant-time big integers library, and a lot of other improvements. See https://www.pycryptodome.org/src/changelog for more info.

The latest 5 of 7 in the history this site was built from.