Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_rfc6030.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Add an is_encrypted propertyArthur de Jong2017-12-271-0/+8
| | | | | | This property can be use to see whether the PSKC file needs an additional pre-shared key or passphrase to decrypt any stored information.
* Implement signature checkingArthur de Jong2017-12-271-2/+3
| | | | | | | | | | | | | | | This adds support for creating and verifying embedded XML signatures in PSKC files. This uses the third-party signxml library for actual signing and verification. The signxml library has a dependency on lxml and defusedxml (and a few others) but all parts of python-pskc still work correctly with our without lxml and/or defusedxml and signxml is only required when working with embedded signatures. This modifies the tox configuration to skip the signature checks if singxml is not installed and to only require 100% code coverage if the signature tests are done.
* Implement basic parsing of signature propertiesArthur de Jong2017-12-271-1/+13
|
* Add all figures from RFC 6030 to test suiteArthur de Jong2016-12-211-10/+66
| | | | Note that asymmetric encryption and digital signature checking has not yet been implemented so the tests are pretty minimal.
* Some minor improvements to the testsArthur de Jong2016-09-141-0/+8
|
* Also check key expiry in may_use()Arthur de Jong2016-03-231-2/+4
|
* Improve tests and test coverageArthur de Jong2016-03-191-2/+14
| | | | | | | | | | 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.
* Re-organise test filesArthur de Jong2016-01-301-7/+7
| | | | | This puts the test PSKC files in subdirectories so they can be organised more cleanly.
* Support Python 3Arthur de Jong2015-10-061-13/+20
| | | | | | | | 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.
* Always put a space between RFC and numberArthur de Jong2014-05-291-16/+16
|
* Raise an exception if decryption failsArthur de Jong2014-05-251-2/+4
|
* Use pskcxml as file name extensionArthur de Jong2014-05-231-7/+7
| | | | This is the extension that is suggested in RFC6030.
* Improve testArthur de Jong2014-05-231-2/+7
| | | | | This tests that, before the PSKC ecnryption is key available, the secret from the key cannot be extracted.
* Provide pskc.key docstringsArthur de Jong2014-04-191-1/+1
| | | | | | | | | This documents most of the information that is available per key and adds a few other minor cosmetic changes. This also re-organises the key properties to be in a slightly more logical order and renames the userid key property to key_userid to more clearly distinguish it from device_userid.
* Add bulk provisioning test from Figure 10Arthur de Jong2014-04-161-0/+37
|
* Add test for Figure 7 from RFC6030Arthur de Jong2014-04-131-0/+18
| | | | | This tests encrypted key derivation using PBKDF2 and a pre-shared passphrase.
* Add test for Figure 6 from RFC6030Arthur de Jong2014-04-121-0/+16
| | | | This test key encryption with a pre-shared key and MAC checks.
* Add test for Figure 5 from RFC6030Arthur de Jong2014-04-111-0/+52
| | | | This test extraction of key policy information and cross-key references.
* Add test for Figure 4 from RFC6030Arthur de Jong2014-04-111-0/+16
| | | | | This tests for key profile and key reference properties that can be used to reference external keys.
* Add test for Figure 3 from RFC6030Arthur de Jong2014-04-111-0/+72
This tests Figure 3 from RFC6030 with a very basic plain text secret key and some supplementary data.