Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_aeskw.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Replace use of pycrypto utility functionsArthur de Jong2017-10-011-4/+4
| | | | | | 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.
* Improve branch coverageArthur de Jong2016-09-141-4/+38
| | | | This enables branch coverage testing and adds tests to improve coverage.
* Improve tests and test coverageArthur de Jong2016-03-191-5/+5
| | | | | | | | | | This adds tests to ensure that incorrect attribute and value types in the PSKC file raise a ValueError exception and extends the tests for invalid encryption options. This removes some code or adds no cover directives to a few places that have unreachable code or are Python version specific and places doctest directives inside the doctests where needed.
* Support Python 3Arthur de Jong2015-10-061-38/+39
| | | | | | | | 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-091-1/+1
| | | | | | 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.
* Implement padding as specified in RFC 5649Arthur de Jong2014-05-301-1/+79
| | | | This adds a pad argument with which padding can be forced or disabled.
* Allow speciying an initial value for key wrappingArthur de Jong2014-05-301-0/+17
|
* Provide an RFC 3394 AES key wrapping algorithmArthur de Jong2014-05-301-0/+101
This also introduces an EncryptionError exception.