aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
Commit message (Collapse)AuthorAgeFilesLines
* flake8michael-hart2014-09-261-1/+3
|
* Added code and tests of EC public keysmichael-hart2014-09-261-0/+12
|
* Corrected testsmichael-hart2014-09-262-19/+10
|
* Added all changes lost in merge resetmichael-hart2014-09-262-6/+33
|
* Part 1 of rebase, with corrections for pep8michael-hart2014-09-261-23/+5
|
* Corrected testsmichael-hart2014-09-262-19/+10
|
* Added all changes lost in merge resetmichael-hart2014-09-263-5/+40
|
* Part 1 of rebase, with corrections for pep8michael-hart2014-09-261-1/+35
|
* Merge pull request #1341 from michael-hart/ec_vectorsPaul Kehrer2014-09-241-9/+9
|\ | | | | Test Vector changes
| * Test Vector changesmichael-hart2014-09-231-9/+9
| | | | | | | | | | | | | | Changed names of existing vectors to be more instructive about what the key contains, and adapted tests to compensate, which pass. Added public keys for all encryption types and two new private keys for PEM serialization, documented in the README.txt in the same folder
* | Merge pull request #1330 from reaperhulk/fix-commoncrypto-gcmAlex Gaynor2014-09-171-1/+34
|\ \ | |/ |/| Fix two bugs with CommonCrypto GCM that can result in invalid output.
| * resolve GCM tag issue with AAD only on OpenSSL 1.0.1 in Ubuntu 12.04Paul Kehrer2014-09-121-4/+4
| |
| * moved GCM tests to be run against all backends, added radar bug numbersPaul Kehrer2014-09-112-32/+34
| |
| * byte strings are byte stringsPaul Kehrer2014-09-111-9/+9
| |
| * Fix two bugs with CommonCrypto GCM that can result in invalid output.Paul Kehrer2014-09-111-0/+31
| | | | | | | | | | | | | | Bug #1: Call to AAD but no call to update. Get null tag bytes. Bug #2: Call to update without call to AAD. Get null ciphertext bytes. Fixes #1329
* | Added PKCS8 encoded private keys to testsMichael Hart2014-09-121-18/+30
| | | | | | | | | | | | | | Generated two files with the same private key as PEM_Serialization's ec_private_key.pem, one unencrypted and one encrypted with "123456". Also changed existing PEMSerialization unit tests to take parameters so that tests can be extended easily.
* | Reorganised importsMichael2014-09-121-4/+3
| | | | | | | | | | | | Swapped the order of the imports so that flake8 will see that they are correct, and changed the test import to be relative rather than absolute, as is the standard
* | Changed EC curve type and add test markersMichael2014-09-121-0/+8
| | | | | | | | | | | | Changed the Elliptic Curve curve type from secp256k1 to secp256r1, as this is supported, in an attempt to pass tests on CentOS 7; also added markers and methods to skip test functions for systems that do not support ECC.
* | Adjusted formatting and added EC checkunknown2014-09-121-1/+3
| | | | | | | | | | | | | | | | Due to the code failing the PEP-8 test, the test code has been reformatted so that there are two blank lines between the function and the next class, and the overlong line has been adjusted. Also added a check to the private key loading function to check for the Cryptography_HAS_EC field. This has been tested on Windows only.
* | Implemented support for loading EC private keysunknown2014-09-111-0/+23
|/ | | | | | Loads Elliptic Curve private keys from .PEM files, whether encrypted or unencrypted, given that the encryption method is supported. Also included changes to the test files and documentation for said method.
* multibacken for docsAlex Gaynor2014-09-081-1/+17
|
* fixesAlex Gaynor2014-09-081-1/+1
|
* Start moving everything to the new APIAlex Gaynor2014-09-081-3/+21
|
* Verify that padding is an instance of AsymmetircPadding before trying to use ↵Alex Gaynor2014-08-251-0/+2
| | | | it; fixes #1318
* Fix test failuresTerry Chia2014-07-283-6/+6
|
* add missing DSABackend numbers loading methods to MultibackendPaul Kehrer2014-07-181-0/+18
|
* Raise ValueError if the password doesn't fitAlex Stapleton2014-07-111-2/+19
| | | | Fixes #1235. OpenSSL only allows password up to 1024 bytes.
* Add a sensible repr to RSAPublicNumbersTerry Chia2014-07-101-0/+5
|
* add TraditionalOpenSSLSerializationBackend to MultiBackendPaul Kehrer2014-07-091-1/+17
|
* Merge branch 'master' into deprecationAlex Gaynor2014-07-081-1/+16
|\
| * change some nomenclaturePaul Kehrer2014-07-071-1/+1
| |
| * add PKCS8SerializationBackend support to MultiBackendPaul Kehrer2014-07-071-1/+16
| |
* | Restore these testsAlex Gaynor2014-07-071-0/+11
| |
* | Advanced and remove the deprecated MGF1 sale length codeAlex Gaynor2014-07-071-85/+15
|/
* Merge pull request #1206 from reaperhulk/static-windows-buildsAlex Stapleton2014-07-061-1/+13
|\ | | | | switch to static linking on windows and update installation page
| * change env variable name, handle empty stringPaul Kehrer2014-07-051-0/+2
| |
| * improve unit tests for _get_windows_librariesPaul Kehrer2014-07-031-2/+2
| |
| * switch to env variable based static/dynamic switch for windowsPaul Kehrer2014-07-021-1/+11
| |
* | Merge pull request #1201 from alex/no-more-truncationPaul Kehrer2014-07-012-6/+11
|\ \ | | | | | | Fixes #1200 -- disallow GCM truncation by default
| * | Simplify code and add testAlex Gaynor2014-06-302-2/+5
| | |
| * | Fixes #1200 -- disallow GCM truncation by defaultAlex Gaynor2014-06-292-5/+7
| |/
* / rename the rest of the methodPaul Kehrer2014-07-011-3/+3
|/
* Merge pull request #1191 from reaperhulk/dsa-deprecate-backend-methodsAlex Stapleton2014-06-291-0/+22
|\ | | | | deprecate DSA backend methods
| * deprecate DSA backend methodsPaul Kehrer2014-06-281-0/+22
| |
* | deprecate concrete DSA classes and update DSA docsPaul Kehrer2014-06-271-3/+11
|/
* add multibackend support for new DSABackend methodPaul Kehrer2014-06-271-0/+9
|
* add generate_private_key to DSAParameters + add a new function to dsaPaul Kehrer2014-06-271-2/+11
| | | | | | | dsa.generate_private_key(key_size, backend) will allow you to generate a new DSA key and implicitly generate new parameters. This streamlines the common case and will be an avenue to support future backends that don't allow independent generation of DSAParameters (e.g. CommonCrypto)
* DSA opaque OpenSSLPaul Kehrer2014-06-252-54/+86
|
* modify test_dsa to use DSA*Numbers and split fixtures outPaul Kehrer2014-06-232-276/+339
|
* Merge pull request #1163 from reaperhulk/dsa-numbers-classesAlex Gaynor2014-06-231-0/+60
|\ | | | | DSA*Numbers classes