aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2180 from reaperhulk/easy-conditional-fixDonald Stufft2015-08-041-0/+18
|\ | | | | create a ConditionalLibrary and remove unsupported items
| * add test for conditional removalPaul Kehrer2015-08-011-0/+18
| |
* | Fixes #2199 -- allow SSH keys to have spaces in their commentsAlex Gaynor2015-08-031-6/+4
| |
* | missed onePaul Kehrer2015-08-031-1/+1
| |
* | Merge remote-tracking branch 'upstream/master' into cert-builderIan Cordasco2015-08-032-30/+27
|\ \
| * | this is gonna be unicode nowPaul Kehrer2015-08-011-3/+3
| | |
| * | move urandom engine testPaul Kehrer2015-08-012-30/+27
| |/ | | | | | | | | | | | | | | | | | | This test was in the bindings dir, which is incorrect. We do not set the urandom engine to default unless the openssl backend is loaded. The reason the test wasn't failing (even in the random test case) is that the backends are loaded during pytest_generate_tests by a call to _available_backends. So no matter what order it occurred in the engine was already set to default. I discovered this when I tried to run the test_openssl.py bindings tests directly via pytest. Hooray global state.
* | Add test coverage for MultiBackend.sign_x509_certificateIan Cordasco2015-08-021-0/+8
| |
* | Add note to serial_number parameter about entropyIan Cordasco2015-08-021-11/+3
| | | | | | | | | | | | | | | | | | | | - Add reference to random-numbers.rst for easy intra-linking - Document critical parameter of CertificateBuilder.add_extension - Support InhibitAnyPolicy in the CertificateBuilder frontend but not in the backend - Slim down more tests - Fix up test that asserts the backend does not allow for unsupported extensions
* | Remove CertificateBuilder.versionIan Cordasco2015-07-241-3/+1
| | | | | | | | Default CertificateBuilder to Version.v3
* | Add tests to test_openssl backend for extra coverageIan Cordasco2015-07-201-0/+39
|/
* Fixed #2143 -- added __hash__ to RSA{Public,Private}NumbersAlex Gaynor2015-07-121-0/+16
|
* do the same simplification to the aad testPaul Kehrer2015-07-011-3/+1
|
* add missing test, simplify encrypted byte near limit calculationPaul Kehrer2015-07-011-3/+15
|
* add additional increment testsPaul Kehrer2015-07-011-8/+18
|
* put the AAD and encrypted byte limit checks in the parent contextPaul Kehrer2015-07-011-0/+30
|
* Merge pull request #2073 from glyph/no-c-randomPaul Kehrer2015-06-302-8/+38
|\ | | | | Replace C implementation of OS Random engine with Python one that just calls os.urandom
| * test libressl when there is no libresslGlyph2015-06-301-2/+15
| |
| * pep8Glyph2015-06-301-0/+1
| |
| * Detect and ignore LibreSSL.Glyph2015-06-301-1/+3
| |
| * the output of RAND_bytes is os.urandom's resultGlyph2015-06-291-0/+14
| |
| * handle previous registration by raising RuntimeErrorGlyph2015-06-271-2/+2
| |
| * pointer shenanigansGlyph2015-06-261-9/+8
| | | | | | | | | | | | | | | | apparently (?) ENGINE_by_id treats its ID as an opaque *pointer* key and not actually as a string, and while CPython's CFFI support seems to manage to preserve the pointer identity when using the same Python string, PyPy doesn't. Fix things to use a cffi-wrapped pointer again and tests pass on PyPy.
| * remove remaining vestiges, make adding twice workGlyph2015-06-262-4/+2
| |
| * compare contents and not pointersGlyph2015-06-261-9/+12
| |
* | require serialization in asym testsPaul Kehrer2015-06-274-164/+70
| |
* | More branch coverage improvements. By virtue of reorganization and a new testAlex Gaynor2015-06-271-0/+21
|/
* Use SECP256R1 instead of SECT283K1 in CSR testsIan Cordasco2015-06-241-2/+2
|
* Skip tests when the EC curve is unsupportedIan Cordasco2015-06-241-0/+2
|
* Add tests to the CSR Builder for EC and DSA keysIan Cordasco2015-06-241-1/+24
| | | | | | This skips certain tests on certain versions of differences in how X509_REQ_sign works on those versions. A separate pull request will address those differences.
* Renames sign_509_request to create_x509_csr.Andre Caron2015-06-241-0/+6
|
* fix ec_cdata_to_evp_pkey bugPaul Kehrer2015-06-221-0/+18
| | | | | | We weren't actually returning the object and the tests weren't catching it because we didn't try to use the evp_pkey property in the tests. The added test confirms it actually works.
* Remove our workarounds for pyasn.1 bugs, a new pyasn.1 is out!Alex Gaynor2015-06-221-2/+2
|
* Add ConcatKDF from NIST SP 800-56ASimo Sorce2015-06-121-0/+251
| | | | | | | | | The implemention allows the use an HMAC function as per Revision 2 of the document. Conformance of the formatting of the OtherInfo argument is responsability of the calling application. Signed-off-by: Simo Sorce <simo@redhat.com>
* convert to cffi 1.0 precompile systemPaul Kehrer2015-06-074-58/+14
|
* Remove a default argument and rename a private function.Jiangge Zhang2015-06-032-3/+3
|
* Follow the review advice: turn URI generator into methods.Jiangge Zhang2015-06-032-9/+4
|
* Add "generate_key_uri" utility for HOTP/TOTP.Jiangge Zhang2015-05-262-0/+31
|
* Merge pull request #1989 from elitest/fixapachelicPaul Kehrer2015-05-241-12/+3
|\ | | | | Fix dual license in test_dh.py
| * Fix dual license in test_dh.pyJim Shaver2015-05-241-12/+3
| |
* | add support for secp256k1Paul Kehrer2015-05-081-4/+11
| |
* | Refs #1870 - replace six.u with u prefix in tests/hazmat/primitivesEeshan Garg2015-04-297-32/+18
|/
* Merge pull request #1848 from reaperhulk/invalid-tokenAlex Gaynor2015-04-142-2/+4
|\ | | | | Twofactor invalid token
| * Move cryptography.exceptions.InvalidToken to ↵Steven Buss2015-04-132-2/+4
| | | | | | | | cryptography.hazmat.primitives.twofactor
* | Work around pyasn1's willingness to return endOfOctets in DER parsingGeoffrey Thomas2015-04-131-0/+5
|/ | | | See #1838 for discussion.
* add load_der_x509_csr to support loading DER encoded CSRsPaul Kehrer2015-03-301-0/+6
|
* rename request to CSRPaul Kehrer2015-03-291-3/+3
|
* basic support for parsing x509 requestsPaul Kehrer2015-03-291-0/+6
|
* allow zero value bn using _bn_to_int in the openssl backendPaul Kehrer2015-03-251-0/+4
|
* pep8! *shakes fist at the sky*Paul Kehrer2015-03-141-1/+1
|