aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends/interfaces.rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix `load_rsa_public_numbers` documentation (#3871)David Sanders2017-08-201-1/+1
|
* changelog entry and a few updates to the new DH params docs (#3718)Paul Kehrer2017-06-241-2/+2
|
* Dh parameters serialization (#3504)Aviv Palivoda2017-06-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support DH parameter serizalization - no X9.42 * Support X9.42 serialization - DER not working * Fix dhp_rfc5114_2.der Changing the DER parameters serialization after the fix in openssl commit a292c9f1b835 * DH parameters X9.42 DER serialization fixed * fix _skip_dhx_unsupported * document DH parameter_bytes * PEP8 fixes * Document load_pem_parameters * Document load_der_parameters * document ParameterFormat * Increase test coverage * Increase test covrage * Remove unneeded check * Fix typo * Fix error in load_der_parameters * Add load_pem_parameters and load_der_parameters to interfaces * CR fixes * Removed unverified phrase * Update version to 2.0 * Fix pep8 * Rename ParameterFormat.ASN1 to ParameterFormat.DHParameter * link pkcs3 * Add new line at end of file to serialization.rst * Rename DHparameters to PKCS3 * doc CR fix
* move MACContext to mac.py and eliminate interfaces.py (#3631)Paul Kehrer2017-05-291-2/+2
| | | | | | | | | | | | | * move MACContext to mac.py and eliminate interfaces.py finally * improve title * re-add and deprecate interfaces.MACContext * use pytest.warns instead of deprecated_call The pytest docs insist that deprecation warnings are handled differently and that you should use deprecated_call, but this works so okay then
* time to remove commoncrypto, fare thee well (#3551)Paul Kehrer2017-05-201-4/+0
| | | | | | | | | | | | | | | | * time to remove commoncrypto, fare thee well * remove even more * update the changelog * remove more things * don't need this function * remove CAST5 CTR tests since that was only supported in commoncrypto * assert a thing
* DH subgroup order (q) (#3369)Aviv Palivoda2017-03-051-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support DH q (subgroup order) * Change RFC5114.txt to NIST format * Add tests for DH q * Update docs for DH q * Fix pep8 * Improve test covergae for DH q * Create _dh_params_dup that copy q if DHparams_dup don't On OpenSSL < 1.0.2 DHparams_dup don't copy q. _dh_params_dup call DHparams_dup and if the version is smaller than 1.0.2 copy q manually * Copy q manually on libressl * Add to test vectors serialized RFC5114 2048 bit DH parameters with 224 bit subgroup * Support serialization of DH with q * Add tests for serialization of DH with q * Support DH serialization with q only if Cryptography_HAS_EVP_PKEY_DHX is true * Raise exception when trying to serialize DH X9.42 when not supported * raise unsupported key type when deserilizing DH X9.42 if not supported * pep8 fixes * Fix test_serialization * Add dhx_serialization_supported method to DHBacked * document q in dh_parameters_supported * Rename dhx_serialization_supported to dh_x942_serialization_supported
* OpenSSL DH backend implementation [Second attempt] (#2914)Aviv Palivoda2016-11-261-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start of OpenSSL DH backend implementation * Supporting DH in MultiBackend * DHBackend has dh_parameters_supported method * Removed DHParametersWithNumbers and DHPrivateKeyWithNumbers from documentation * Removed ExchangeContext. exchange is a method of DHPrivateKeyWithSerialization * PEP8 fixes * Fixed TestDH.test_bad_tls_exchange * Fixed generate_private_key reference in dh documentation * test DH multibackend support * testing DH coversion to serialized * Validating that we receive serialized class in test_generate_dh * Testing DH exchange symmetric key padding * struct DH is now opaqued * PEP8 fixes * Testing load_dh_private_numbers throws ValueError when DH_check fails * Using openssl_assert * Passing keywords arguments in DH key exchange example * test_dh::test_bad_tls_exchange now uses pre calculated parameters * TestDH - Add test that the computed secret is equivalent to the definition by comparing with secret computed in pure python * Add missing generator parameter to DHBackend interface docs. * Include parameter type in DHBackend abc docs. * Add docs for dh.generate_parameters function * Remove the dh Numbers section, and move the DHNumbers class docs to where they are first used. * Add note of big endian byte packing to DH exchange method. * DH documentation updates. Add single sentence overview with wikipedia link. Add paragraph on assembling using Numbers objects. Add link to backend interface docs. First section was all indented, I think by mistake. * Add exchange method to DHPrivateKey abstract base class. * Small tweaks to DH documentation - remove Provider. * Add endian to dictionary * Use utils.int_from_bytes in test_tls_exchange_algorithm * Removed duplicate line * Change dh.rst exchange algorithm from doctest to code-block The example in the Diffie-Hellman exhange algorithm is using 2048 bits key. Generating the parameters of 2048 takes long time. This caused the automated tests to fail. In order to pass the tests we change the example to code-block so it will not run in the doc tests. * Fix dh docs * Document the generator in DHBackend relevant methods * Fix dh tests * use DHparams_dup * Fix key type to unsigned char as expected by DH_compute_key * Validate that DH generator is 2 or 5 * test dh exchange using botan vectors * group all numbers classes * Simplify _DHPrivateKey * Rename test with serialized to numbers * Move bad exchange params to external vector file * update exchange versionadded to 1.7 * Make key_size bit accurate * Change botan link * Added CHANGELOG entry
* change derive_elliptic_curve_public_point to return EllipticCurvePubl… (#3243)Paul Kehrer2016-11-181-2/+3
| | | | | | | | | | | | | | * change derive_elliptic_curve_public_point to return EllipticCurvePublicKey * also rename the backend interface method * review feedback * Rename to derive_elliptic_curve_private_key * Returns EllipticCurvePrivateKey * Reuses the EC_POINT in the openssl impl * Rename "secret" arg to "private_value" which is consistent with our naming for the value in ECPrivateNumbers.
* Add a bytes method to get the DER ASN.1 encoding of an X509 name. (#3236)Paul Kehrer2016-11-131-0/+8
| | | | | | | | | | * Add a bytes method to get the DER ASN.1 encoding of an X509 name. This is useful for creating an OpenSSL style subject_name_hash (#3011) * add to backend interface and update multibackend * bytes -> public_bytes
* add ec.private_key_from_secret_and_curve (#3225)Ofek Lev2016-11-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * finish https://github.com/pyca/cryptography/pull/1973 * change API & add test Function will now return an instance of EllipticCurvePrivateKey, as that is the users' ultimate goal anyway. * fix test * improve coverage * complete coverage * final fix * centos fix * retry * cleanup asserts * use openssl_assert * skip unsupported platforms * change API name to derive_private_key * change version added * improve description of `secret` param * separate successful and failure test cases * simplify successful case * add docs for derive_elliptic_curve_public_point * add period
* Scrypt Implementation (#3117)Terry Chia2016-09-011-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | * Scrypt implementation. * Docs stuff. * Make example just an example and not a doctest. * Add changelog entry. * Docs cleanup. * Add more tests. * Add multibackend tests. * PEP8. * Add docs about Scrypt parameters. * Docs cleanup. * Add AlreadyFinalized.
* Removed provider language from backend interfaces (#3047)Gabriel Orisaka2016-07-181-110/+81
|
* Remove some 0.9.8 cruft from the docs (#3015)Alex Gaynor2016-06-261-3/+1
|
* Fixed #2700 -- corrtected the create_hmac_ctx interface docsAlex Gaynor2016-01-301-1/+3
|
* add create_x509_revoked_certificate to x509backend interfacePaul Kehrer2015-12-251-0/+9
|
* fix rebase mistake in the docsPaul Kehrer2015-12-241-21/+1
|
* CertificateRevocationListBuilderPaul Kehrer2015-12-241-0/+19
| | | | | RSA keys only. Currently does not support CRL extensions or CRLEntry extensions.
* Merge pull request #2565 from reaperhulk/crl-interfaceAlex Gaynor2015-12-241-0/+20
|\ | | | | add create_x509_crl interface
| * better languagePaul Kehrer2015-12-241-2/+2
| |
| * add create_x509_crl interfacePaul Kehrer2015-12-241-0/+20
| |
* | Use clearer language in the backend interface docs.Alex Gaynor2015-12-241-4/+3
|/ | | | Refs #2565
* rename sign_x509_certificate backend method to create_x509_certificatePaul Kehrer2015-08-061-1/+1
|
* add missing sign_x509_certificate X509Backend interface docsPaul Kehrer2015-08-061-0/+20
|
* add two missing methods to backend interface docsPaul Kehrer2015-06-261-0/+31
|
* DH backend interfacesAlex Stapleton2015-04-251-0/+85
|
* add missing "signing"Paul Kehrer2015-03-291-1/+1
|
* rename to CertificateSigningRequestPaul Kehrer2015-03-291-1/+2
|
* rename request to CSRPaul Kehrer2015-03-291-2/+2
|
* basic support for parsing x509 requestsPaul Kehrer2015-03-291-0/+8
|
* missed some linksPaul Kehrer2015-03-091-2/+2
|
* move asymmetric padding interface to primitives.asymmetric.paddingPaul Kehrer2015-02-161-1/+1
|
* export interfaces from base in ciphers, update docsPaul Kehrer2015-02-141-9/+9
|
* move cipher and mode interfacesPaul Kehrer2015-02-131-12/+12
|
* move hash interfacesPaul Kehrer2015-02-131-11/+11
|
* make our docs job nitpicky and fix every broken linkPaul Kehrer2015-02-121-9/+9
|
* remove unused X509 certificate interfacePaul Kehrer2015-02-121-4/+2
| | | | | | We merged this interface and then changed our approach and use the cryptography.x509.Certificate interface instead. This one was never directly used.
* Move RSA*Key interfaces to cryptography.hazmat.primitives.asymmetric.rsaAlex Stapleton2015-01-241-3/+3
|
* Move DSA* interfaces to interfaces.dsa moduleAlex Stapleton2015-01-221-6/+6
|
* Merge pull request #1608 from reaperhulk/der-backend-interfacesAlex Gaynor2015-01-171-0/+24
|\ | | | | add DER backend interfaces
| * add DER backend interfacesPaul Kehrer2015-01-041-0/+24
| |
* | Increase the year in some of our docsAlex Gaynor2015-01-081-2/+2
|/
* Fixed some grammar in the docsAlex Gaynor2014-12-271-10/+10
|
* remove fully deprecated items from 0.6 deprecation cyclePaul Kehrer2014-12-181-45/+0
|
* add load_der_x509_certificate X509Backend methodPaul Kehrer2014-11-241-0/+7
|
* update docs with review feedbackPaul Kehrer2014-11-241-3/+2
|
* add backend interface for loading x509 certificatesPaul Kehrer2014-11-241-0/+14
|
* A few more docs fixesAlex Gaynor2014-11-231-2/+1
|
* fixed a syntax error in the docsAlex Gaynor2014-11-201-7/+7
|
* remove deprecated DSA classes/methods and update testsPaul Kehrer2014-09-301-33/+0
|
* remove docs for fully deprecated classes/methodsPaul Kehrer2014-09-291-100/+0
|