PyCA cryptography 3.4.7 has been released to PyPI. cryptography
includes both high level recipes and low level interfaces to common
cryptographic algorithms such as symmetric ciphers, asymmetric
algorithms, message digests, X509, key derivation functions, and much
more. We support Python 3.6+, and PyPy3.
Changelog (https://cryptography.io/en/latest/changelog.html#v3-4-7):
* Updated Windows, macOS, and manylinux wheels to be compiled with
OpenSSL 1.1.1k.
-Paul Kehrer (reaperhulk)
Hi,
A service we communicate with sends us their Curve25519 public key as a PEM
file. The key is DER encoded and the format is X.509's
SubjectPublicKeyInfo.
We would like to create a
cryptography.hazmat.primitives.asymmetric.x25519.X25519PublicKey for this
object but I am unable to find the routines to load such keys.
X25519PublicKey.load_public_bytes(..) expects a raw key.
Using the following openssl command I can examine the key: openssl
asn1parse -in pub_key.pem
Any suggestions on how my service written in Python can load this kind of a
public key? I've also posted a slightly more detailed question here:
https://stackoverflow.com/questions/66492939/python-decoding-an-ecdh-curve-…
regards,
Saurabh