| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
* Migrate nonce and basic constraint extensions to Rust
* clippy
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add LibreSSL 3.4.0 to CI
* Add a LibreSSL 3.4.0 guard
Since LibreSSL 3.4.0 makes most of the TLSv1.3 API available, redefine CRYPTOGRAPHY_OPENSSL_LESS_THAN_111 to LibreSSL versions below 3.4.0.
* DTLS_get_data_mtu does not exist in LibreSSL
* Only EVP_Digest{Sign,Verify} exist in LibreSSL 3.4.0+
* SSL_CTX_{set,get}_keylog_callback does not exist in LibreSSL
* Do not pollute CRYPTOGRAPHY_OPENSSL_LESS_THAN_111 with LibreSSL
While LibreSSL 3.4.0 supports more of TLSv1.3 API, the guard redefinition caused the X448 tests to run when not intended.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
refs #6289
|
|
|
|
|
|
|
| |
Issue an #error directive if it is
Signed-off-by: Baofeng Wang <baofeng.wang67@gmail.com>
Co-authored-by: Baofeng Wang <baofeng.wang67@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* add PKCS7_get0_signers(), X509_STORE_set_purpose(), and X509_PURPOSE_*
* removed argument names of X509_STORE_set_purpose() and PKCS7_get0_signers()
* Update pkcs7.py
* Update x509_vfy.py
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* FIPS 3.0.0 support
* comments
* remove unneeded error clear
* review comments
* small refactor
* black
* flake8 too
* review feedback
* oops
* fix
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Expose a few more OpenSSL functions that are useful for DTLS support
* Move BIO_ADDR gunk to proper place
* const correct
* Throw more #ifdefs at the wall and see if they stick
* njsmith used "think about what he's doing"
it's probably not very effective
* LibreSSL is not my favorite library
* Attempt to hide my new undefined symbols
* deflake
* Give up on trying to check function pointers for NULLness
AFAICT it works fine in CFFI's ABI mode, but I can't figure out how to
do it in the API mode.
|
|
|
|
|
| |
* Remove unused gf2m bindings
* Update ec.py
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added handling for OpenSSL "xts duplicated keys" error.
Closes #5998
This error value was added pre-OpenSSL 1.1.1d here:
https://github.com/openssl/openssl/commit/2a5f63c9a61be7582620c4b5da202bb3fd7e4138
and refined to only cover encryption shortly after:
https://github.com/openssl/openssl/commit/58ae5a47da1e4843b0cd1846eb297b341d0e7201
* test_aes: Remove unnecessary assignment
* xts: Update duplicated keys check for OpenSSL 3 providers
Also, change the exception message slightly:
- Now matches the tense used by openssl
- Turns out decryption *is* checked for duplicate keys by
OpenSSL 3 when in FIPS mode
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Port OCSP Request extension parsing to Rust
* Added test for rando oid
* Update src/rust/src/asn1.rs
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
|
|
|
|
|
|
|
| |
* 3.0.0 support
* almost...there...
* make mypy happy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* LibreSSL 3.3.2 supports SSL_OP_NO_DTLS*
While here, bump CI
* Fix preprocessor guards for LibreSSL's SSL_OP_NO_DTLS*
DTLS_set_link_mtu and DTLS_get_link_min_mtu are not part of 3.3.2
* Switch to LESS_THAN context for LibreSSL 3.3.2
While here, fix indents
* Remove extra C variable declaration
The variable is not actually used from Python
|
|
|
| |
remove unused lower level bindings, improve error msg
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* switch to using EVP_PKEY_derive instead of DH_compute_key in DH
Where checks are occurring is changing in OpenSSL 3.0 and this makes it
easier to be consistent (and is the API we should be using anyway). The
tests change because EVP_PKEY_derive now verifies that we have shared
parameters, which the test previously only verified by asserting that
the derived keys didn't match
* review feedback
* type ignores required for typeerror tests. some day i will remember this
|
|
|
|
| |
These don't appear to be used in pyopenssl or cryptography.io. One less
source of conditionals.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add ssl version constants
* try to fix ci
* try harder to fix ci
* security: if unavailable, set protocol constants to nonexistent version
* make linter happy
* remove dtls constants
* remove superfluous comment
|
| |
|
|
|
| |
cherry picked from #4920
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Removed unused argument.
* Added support for RSA signature recovery.
* Syntatic corrections for passing pep8 tests.
* Corrected typo.
* Added test of invalid Prehashed parameter to RSA signature recover.
* Renamed recover to a more descriptive name.
* Extended RSA signature recovery with option to return full data (not
only the digest part).
* Added missing words to pass spell check.
|
|
|
|
| |
fixes #5379
closes #5483
|
| |
|
|
|
|
|
|
|
| |
* Don't build our custom osrandom engine on libressl
As far as I can tell it's never used on LibreSSL -- they're `RAND_bytes` function unconditionally calls `arc4random_buf`
* Update cryptography.py
|
|
|
|
| |
In 3.0 these aren't macros so we can't test this way. All our supported
OpenSSLs have these bindings now and LibreSSL does not.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* PKCS7SignatureBuilder now supports three serializations
PEM, DER, and SMIME. SMIME embeds the S/MIME headers and has the
detached signature concept.
* thanks libre
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* smime signer support
* fix ed25519 check
* change some wording
* python 2.7...
* review feedback
* s/secure/signed
* do some verification in the tests
* review feedback
* doc return value
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add pkcs7/smime bindings
* Update src/_cffi_src/openssl/pkcs7.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Update src/_cffi_src/openssl/pkcs7.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* re-add a few engine bindings for advanced users
For users who are capable of compiling cryptography against custom
openssl and properly using these functions this hopefully allows
PKCS11 usage through OpenSSL engines.
* forgot to save my buffer
|
| |
|