Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pskc/crypto
Commit message (Collapse)AuthorAgeFilesLines
* Ignore more flake8 messagesArthur de Jong2018-07-301-3/+3
|
* Add and cleanup docstringsArthur de Jong2018-02-151-10/+10
| | | | | | | | This adds docstrings to public methods and cleans up a few other docstrings to pass most flake8 docstring related tests. This also adds noqa statements in a few places so we can remove most entries from the global flake8 ignore list.
* Add support for KW-Camellia suite of algorithmsArthur de Jong2017-12-131-4/+4
|
* Replace pycrypto with cryptographyArthur de Jong2017-10-093-38/+33
| | | | | | | | | The cryptography library is better supported. This uses the functions from cryptography for AES and Triple DES encryption, replaces the (un)padding functions that were previously implemented in python-pskc with cryptography and uses PBKDF2 implementation from hashlib.
* Replace use of pycrypto utility functionsArthur de Jong2017-10-012-10/+17
| | | | | | This uses os.urandom() as a source for random data and replaces other utility functions. This also removes one import for getting the lengths of Tripple DES keys.
* Run flake8 from toxArthur de Jong2017-09-202-5/+7
| | | | | This also makes a few small code formatting changes to ensure that the flake8 tests pass.
* Add sanity checks to unpaddingArthur de Jong2016-12-201-2/+8
|
* Move padding functions to crypto packageArthur de Jong2016-04-051-0/+32
|
* Support Python 3Arthur de Jong2015-10-062-14/+18
| | | | | | | | This enables support for Python 3 together with Python 2 support with a single codebase. On Python 3 key data is passed around as bytestrings which makes the doctests a little harder to maintain across Python versions.
* Move encryption functions in pskc.crypto packageArthur de Jong2014-10-093-0/+190
This moves the encryption functions under the pskc.crypto package to more clearly separate it from the other code. Ideally this should be replaced by third-party library code.