summaryrefslogtreecommitdiff
path: root/src/saml2/cryptography
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade --py36-plus + black + isortAarni Koskela2022-11-151-6/+6
|
* Fix flake8 warningsIvan Kanakarakis2022-10-011-1/+1
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Format code with black and isortIvan Kanakarakis2022-10-012-25/+22
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Refactor certificate loadingIvan Kanakarakis2022-04-182-1/+41
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Remove deprecated cryptography backend paramIvan Kanakarakis2022-04-183-10/+3
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Warn and log warning messagesIvan Kanakarakis2020-10-281-5/+13
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Remove unneeded string formatIvan Kanakarakis2020-05-121-1/+1
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Make AESCipher and Fernet compatibleIvan Kanakarakis2019-12-261-4/+47
| | | | | | | | | | | | The two schemes now have compatible methods and signatures. To do this, Fernet accepts more params than it uses. These have been added to allow for easier transition. They will be removed in the next release to clean up the class. Moreover, Fernet dictates a very specific format for the "key" that it accepts an uses to encrypt and decrypt payloads. The key must be 32 url-safe bytes long in base64 format. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Explicitly name the default symmetric schemeIvan Kanakarakis2019-12-261-1/+6
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add generic error classes for saml2.cryptography modulesIvan Kanakarakis2019-12-261-0/+17
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Do not hardcode the warning filterIvan Kanakarakis2019-01-071-3/+0
| | | | | | | | | | | | | | | | | | | | The application should control whether warnings should be visible or not. By hardcoding the simplefilter we turn on warnings' visibility for all modules that follow. Removing this allows the application code to decide if warnings should be shown. To enable warnings through the command line pass -Wd to the python interpreter. Quoting the python warnings module documentation[0]: > You can do this from the command-line by passing -Wd to the interpreter (this > is shorthand for -W default). This enables default handling for all warnings, > including those that are ignored by default. To change what action is taken > for encountered warnings you simply change what argument is passed to -W, > e.g. -W error. See the -W flag for more details on what is possible. [0]: https://docs.python.org/2/library/warnings.html#updating-code-for-new-versions-of-python Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Deprecate AESCipher and aes.py moduleIvan Kanakarakis2018-08-021-0/+124
| | | | | | | aes.py is deprecated and will be completely removed in a following release. Users should switch to saml2.cryptography.symmetric instead. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add saml2.cryptography moduleIvan Kanakarakis2018-08-024-0/+92
This module provides cryptographic elements needed by saml2. There are separate modules for symmetric and asymmetric cryptography, as well as pki related operations. The default symmetric cryptography method used is Fernet by the cryptography library. Reference: https://cryptography.io/en/latest/fernet/ Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>