aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Error cleanly if the public and private keys to an ECDH key exchange are on ↵Alex Gaynor2015-10-281-1/+27
| | | | different curves
* add ellipticcurvepublicnumbers reprPaul Kehrer2015-10-281-0/+5
|
* Merge pull request #2447 from reaperhulk/encode-decode-pointAlex Gaynor2015-10-271-0/+67
|\ | | | | add support for encoding/decoding elliptic curve points
| * address review feedbackPaul Kehrer2015-10-281-7/+0
| |
| * modify approach to use EllipticCurvePublicNumbers methodsPaul Kehrer2015-10-272-73/+76
| |
| * remove support for null points, improve docsPaul Kehrer2015-10-271-2/+4
| |
| * add support for encoding/decoding elliptic curve pointsPaul Kehrer2015-10-261-2/+71
| | | | | | | | Based on the work of @ronf in #2346.
* | Merge pull request #2435 from reaperhulk/fix-2407Alex Gaynor2015-10-271-0/+41
|\ \ | |/ |/| encode countryName with PrintableString
| * work on py3Paul Kehrer2015-10-271-2/+2
| |
| * remove unneeded strPaul Kehrer2015-10-271-2/+2
| |
| * switch to using pyasn1_modules for the testPaul Kehrer2015-10-271-12/+14
| |
| * encode countryName with PrintableStringPaul Kehrer2015-10-201-0/+39
| | | | | | | | | | | | | | This commit adds a dependency on asn1crypto for testing purposes to parse the certificate and confirm that countryName is encoded with PrintableString while other fields are UTF8String. This is a test only dep.
* | Merge pull request #2220 from reaperhulk/encode-cpAlex Gaynor2015-10-241-0/+89
|\ \ | | | | | | support encoding certificate policies in CertificateBuilder
| * | support encoding certificate policies in CertificateBuilderPaul Kehrer2015-10-241-0/+89
| | |
* | | Merge pull request #2293 from reaperhulk/idempotent-engine-addAlex Gaynor2015-10-241-2/+2
|\ \ \ | |/ / |/| | idempotent engine add
| * | make engine addition idempotentPaul Kehrer2015-10-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Threading issues keep cropping up. ENGINE_add already acquires a lock at the C layer via CRYPTO_w_lock (provided you have registered the locking callbacks) so let's try to use that. As part of this we'll try to init the openssl locks, but of course there's potentially a race there as well. Clearly this isn't the real fix but it might improve the situation while we try to determine what to do.
* | | typoAlex Gaynor2015-10-241-1/+1
| | |
* | | Fixed #2444 -- added an __hash__ to x509 NamesAlex Gaynor2015-10-241-0/+17
| | |
* | | add comments on test cases to explain reasons a bit betterPaul Kehrer2015-10-221-0/+5
| | |
* | | make skip message more verbosePaul Kehrer2015-10-211-11/+10
| | |
* | | AES keywrap supportPaul Kehrer2015-10-211-0/+112
|/ /
* | fix some indentationPaul Kehrer2015-10-211-2/+2
| |
* | test fixErik Trauschke2015-10-211-0/+2
| |
* | remove convenience functions for revoked extensionsErik Trauschke2015-10-211-10/+11
| | | | | | | | fix docs regarding CRL PEM format
* | Merge branch 'master' into crl_ossl_backendErik Trauschke2015-10-206-8/+163
|\ \
| * | add __repr__ to x509.ExtensionsPaul Kehrer2015-10-201-0/+14
| |/ | | | | | | fix #2434
| * better place for this testAlex Gaynor2015-10-192-7/+16
| |
| * another testAlex Gaynor2015-10-191-0/+7
| |
| * removed unused code, and added a testAlex Gaynor2015-10-191-12/+13
| |
| * be more pro-active in handling invalid keysAlex Gaynor2015-10-181-23/+27
| |
| * unusedAlex Gaynor2015-10-171-6/+0
| |
| * a refactor to the APIAlex Gaynor2015-10-173-76/+59
| |
| * Add an Elliptic Curve Key Exchange Algorithm(ECDH)Simo Sorce2015-10-173-3/+117
| | | | | | | | | | | | | | | | | | The ECDH Key Exchange algorithm as standardized in NIST publication 800-56A Revision 2 Includes tests with vectors from NIST. Signed-off-by: Simo Sorce <simo@redhat.com>
| * Fix load_kasvs_ecdh_vectors() COUNT sourcingSimo Sorce2015-10-132-3/+3
| | | | | | | | | | | | | | | | | | COUNT is a decimal number in test files, but was erroneously read and converted as if the source was a hexadecimal number. Fix the loader and test the fix. Signed-off-by: Simo Sorce <simo@redhat.com>
| * Catch Invalid X or Y points and raise a ValueErrorSimo Sorce2015-10-121-0/+29
| | | | | | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* | Merge branch 'crl_ossl_backend' of github.com:etrauschke/cryptography into ↵Erik Trauschke2015-10-202-0/+258
|\ \ | |/ |/| | | crl_ossl_backend
| * removing caching mechanism for x509 propertiesErik Trauschke2015-10-151-19/+18
| | | | | | | | | | | | undo name change of CRLExtensionOID use custom parsing mechanism for certIssuer entry extension add new crl to vectors for testing invalid certIssuer entry ext
| * use X509ExtensionParser for Revoked extensionsErik Trauschke2015-10-141-17/+12
| | | | | | | | | | | | remove revoked_certificates property from RevokedCertificate class CRLExtensions should actually be RevokedExtensions doctest cleanup for RevokedCertificate
| * fix indentationsErik Trauschke2015-10-131-0/+3
| | | | | | | | | | | | | | | | change docs to indicate CRL objects are iterable fix docs for revoked certs make _decode_crl_reason more readable add __getitem__ method to CRL object remove double underscores
| * use openssl assertErik Trauschke2015-09-281-2/+5
| | | | | | | | | | | | change _build* to _decode* make CRLs into iterators various fixes
| * Merge branch 'master' into crl_ossl_backendErik Trauschke2015-09-281-19/+1
| |\
| * \ Merge branch 'crl_ossl_backend' of github.com:etrauschke/cryptography into ↵Erik Trauschke2015-09-282-0/+258
| |\ \ | | | | | | | | | | | | crl_ossl_backend
| | * \ Merge branch 'master' into crl_ossl_backendErik Trauschke2015-09-251-1/+6
| | |\ \
| | * \ \ Merge branch 'master' into crl_ossl_backendErik Trauschke2015-09-254-5/+327
| | |\ \ \
| | * | | | OpenSSL backend code for CRLsErik Trauschke2015-09-242-0/+258
| | | | | |
* | | | | | Merge pull request #2402 from ddcc/patch-1Paul Kehrer2015-10-111-0/+39
|\ \ \ \ \ \ | | | | | | | | | | | | | | minor fix to handle malformed certificates without hostname
| * | | | | | fix to handle malformed certificates without hostnameDominic Chen2015-10-101-0/+39
| | | | | | |
* | | | | | | Fixed #2404 -- handle a certificate with an unknown public keyAlex Gaynor2015-10-101-0/+15
|/ / / / / /
* | | | | | Add missing license header.Terry Chia2015-10-031-0/+4
| | | | | |
* | | | | | Merge pull request #1773 from Ayrx/hypothesisPaul Kehrer2015-10-022-0/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | Property based testing with Hypothesis