aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
Commit message (Collapse)AuthorAgeFilesLines
* Standardized the assignment statement for str_key in TestSSHSerialization.Mark Adams2014-12-131-16/+16
|
* Privatized the load_ssh_rsa_public_key function and fixed some coverage ↵Mark Adams2014-12-131-43/+39
| | | | issues on test_serialization.
* Added load_ssh_rsa_public_key to hazmat.primitives.serialization to allow ↵Mark Adams2014-12-131-3/+100
| | | | | | for loading of OpenSSH RSA public keys Also added load_ssh_public_key as a generic method that can be later extended to support more public key algorithms.
* add NotImplemented handlingPaul Kehrer2014-12-103-0/+7
|
* add __ne__ and __eq__ methods to RSA, DSA, and EC numbers classesPaul Kehrer2014-12-103-1/+146
| | | | fixes #1449
* Stupid mistake number one billion.Paul Kehrer2014-12-071-0/+8
|
* directly test r, s for integer-nessPaul Kehrer2014-12-071-0/+1
|
* catch PyAsn1Error for encoding signature as wellPaul Kehrer2014-12-071-0/+8
|
* add comment describing how the ASN.1 sequence in a test is invalidPaul Kehrer2014-12-071-0/+2
|
* catch PyAsn1Error when decoding rfc6979 signaturePaul Kehrer2014-12-061-0/+5
|
* error if signature has trailing bytesPaul Kehrer2014-11-301-0/+7
|
* add encode_rfc6979_signature and refactor tests to use itPaul Kehrer2014-11-273-14/+47
|
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-1632-390/+96
| | | | Fixes #1209
* added a test for verify-after-finalizeAlex Gaynor2014-10-301-0/+3
|
* Don't mark this test class as implementing the interface.Alex Gaynor2014-10-301-1/+0
| | | | It doesn't correctly implement it, that's sort of the point of this test.
* When using a test double for backends, always use one which really ↵Alex Gaynor2014-10-283-30/+16
| | | | implements the interface
* Added attributes that are part of hte interface to several test fakesAlex Gaynor2014-10-275-1/+8
|
* Change how we represented that a test requires a backend.Alex Gaynor2014-10-2323-92/+116
| | | | This way is more extensible and requires less maintaince
* fix overindentPaul Kehrer2014-10-221-1/+1
|
* Fixes #1416 -- replaced assertions with error checking in EC key from numbers.Alex Gaynor2014-10-191-0/+22
| | | | Includes tests.
* if EC_KEY_check_key fails consume errors off stack (+ add test)Paul Kehrer2014-10-141-0/+14
|
* Fixed #1392 -- allow more combinations of p and q's bit lengthsAlex Gaynor2014-10-131-99/+0
|
* remove deprecated DSA classes/methods and update testsPaul Kehrer2014-09-301-517/+449
|
* fix a coverage missPaul Kehrer2014-09-301-1/+1
|
* Remove deprecated RSA methods from backends, update testsPaul Kehrer2014-09-291-393/+69
|
* Wrap lines appropriatelyAlex Gaynor2014-09-291-2/+1
|
* Merge pull request #1345 from reaperhulk/ec-withnumbersAlex Gaynor2014-09-271-0/+36
|\ | | | | Elliptic Curve WithNumbers Support
| * fix invalid dict reference in testPaul Kehrer2014-09-271-1/+1
| |
| * Support EC WithNumbers on OpenSSL backend + testsPaul Kehrer2014-09-271-0/+36
| |
* | EC public/private key loader functions try deprecated as fallbackPaul Kehrer2014-09-271-0/+21
|/
* add curve name parsing to public key loaderPaul Kehrer2014-09-261-0/+2
|
* CURVE_TYPES back to private, removed unneeded point creationPaul Kehrer2014-09-261-4/+4
|
* Process curve name when loading EC keys. Fixes #1336Paul Kehrer2014-09-262-24/+6
|
* flake8michael-hart2014-09-261-1/+3
|
* Added code and tests of EC public keysmichael-hart2014-09-261-0/+12
|
* Corrected testsmichael-hart2014-09-261-18/+9
|
* Added all changes lost in merge resetmichael-hart2014-09-261-5/+32
|
* Part 1 of rebase, with corrections for pep8michael-hart2014-09-261-23/+5
|
* Corrected testsmichael-hart2014-09-261-18/+9
|
* Added all changes lost in merge resetmichael-hart2014-09-261-5/+32
|
* 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-111-1/+34
| |
* | 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.