Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Automatically support all MACs in hashlib | Arthur de Jong | 2014-06-14 | 1 | -5/+15 | |
| | | | | | This uses the name of the hash to automatically get the correct hash object from Python's hashlib. | |||||
* | Support various ElementTree implementations | Arthur de Jong | 2014-06-14 | 3 | -3/+19 | |
| | | | | | | | | | | | When using a recent enough lxml, even Python 2.6 should work now. The most important requirement is that the findall() function supports the namespaces argument. This also now catches all exceptions when parsing the PSKC file fails and wraps it in ParseError because various implementations raise different exceptions, even between versions (Python 2.6's ElementTree raises ExpatError, lxml raises XMLSyntaxError). | |||||
* | Have parse module provide find() functions | Arthur de Jong | 2014-06-14 | 6 | -108/+105 | |
| | | | | | | | | This changes the parse module functions to better match the ElementTree API and extends it with findint(), findtime() and findbin(). It also passes the namespaces to all calls that require it without duplicating this throughout the normal code. | |||||
* | Use get() instead of attrib.get() (shorter) | Arthur de Jong | 2014-06-14 | 5 | -38/+38 | |
| | ||||||
* | Support kw-tripledes decryption | Arthur de Jong | 2014-05-31 | 3 | -0/+47 | |
| | | | | | This adds support for key unwrapping using the RFC 3217 Triple DES key wrap algorithm if the PSKC file uses this. | |||||
* | Implement RFC 3217 Triple DES key wrapping | Arthur de Jong | 2014-05-31 | 2 | -0/+152 | |
| | ||||||
* | Merge test_minimal into test_misc | Arthur de Jong | 2014-05-31 | 2 | -51/+30 | |
| | ||||||
* | Add an ActivIdentity-3DES test | Arthur de Jong | 2014-05-31 | 2 | -0/+79 | |
| | | | | | The test is taken from draft-hoyer-keyprov-pskc-algorithm-profiles-01 modified to fit the schema as described in RFC 6030. | |||||
* | Add an SecurID-AES-Counter test | Arthur de Jong | 2014-05-31 | 2 | -0/+69 | |
| | | | | | The test is taken from draft-hoyer-keyprov-pskc-algorithm-profiles-01 modified to be valid XML and to fit the schema as described in RFC 6030. | |||||
* | Add an TOTP test | Arthur de Jong | 2014-05-31 | 2 | -0/+72 | |
| | | | | | The test is taken from draft-hoyer-keyprov-pskc-algorithm-profiles-01 modified to fit the schema as described in RFC 6030. | |||||
* | Add an OCRA test | Arthur de Jong | 2014-05-31 | 2 | -0/+92 | |
| | | | | | The test is taken from draft-hoyer-keyprov-pskc-algorithm-profiles-01 modified to fit the schema as described in RFC 6030. | |||||
* | Add a test for an odd namespace | Arthur de Jong | 2014-05-31 | 2 | -0/+59 | |
| | ||||||
* | Support kw-aes128, kw-aes192 and kw-aes256 | Arthur de Jong | 2014-05-30 | 5 | -0/+126 | |
| | | | | | This adds support for key unwrapping using the RFC 3394 or RFC 5649 algorithm if the PSKC file uses this. | |||||
* | Implement padding as specified in RFC 5649 | Arthur de Jong | 2014-05-30 | 2 | -26/+140 | |
| | | | | This adds a pad argument with which padding can be forced or disabled. | |||||
* | Allow speciying an initial value for key wrapping | Arthur de Jong | 2014-05-30 | 2 | -6/+37 | |
| | ||||||
* | Provide an RFC 3394 AES key wrapping algorithm | Arthur de Jong | 2014-05-30 | 3 | -0/+179 | |
| | | | | This also introduces an EncryptionError exception. | |||||
* | Always put a space between RFC and number | Arthur de Jong | 2014-05-29 | 11 | -44/+47 | |
| | ||||||
* | Support Tripple DES decryption | Arthur de Jong | 2014-05-29 | 3 | -0/+48 | |
| | ||||||
* | Add tests for key derivation problems | Arthur de Jong | 2014-05-29 | 1 | -0/+39 | |
| | | | | | This tests for unknown or missing algorithms and unknown derivation parameters. | |||||
* | Raise exception when key derivation fails | Arthur de Jong | 2014-05-29 | 2 | -2/+16 | |
| | | | | This also renames the internal function that implements the derivation. | |||||
* | Add test for missing key encryption algorithm | Arthur de Jong | 2014-05-29 | 4 | -9/+37 | |
| | | | | | This also introduces a toplevel PSKCError exception that all exceptions have as parent. | |||||
* | Add test for all AES-CBC encryption schemes | Arthur de Jong | 2014-05-29 | 4 | -0/+131 | |
| | ||||||
* | Support more AES-CBC encryption schemes | Arthur de Jong | 2014-05-29 | 1 | -4/+8 | |
| | | | | | This also moves the crypto imports to the places where they are used to avoid a depenency on pycrypto if no encryption is used. | |||||
* | Add test for missing secret value | Arthur de Jong | 2014-05-29 | 1 | -0/+2 | |
| | ||||||
* | Add a function for adding a new key | Arthur de Jong | 2014-05-25 | 3 | -2/+26 | |
| | ||||||
* | Consistency improvement | Arthur de Jong | 2014-05-25 | 1 | -2/+2 | |
| | ||||||
* | Support creating an empty PSKC instance | Arthur de Jong | 2014-05-25 | 2 | -6/+14 | |
| | ||||||
* | Be more lenient in accepting algorithms | Arthur de Jong | 2014-05-25 | 2 | -16/+3 | |
| | ||||||
* | Code simplification | Arthur de Jong | 2014-05-25 | 1 | -9/+5 | |
| | ||||||
* | Raise an exception if decryption fails | Arthur de Jong | 2014-05-25 | 5 | -4/+67 | |
| | ||||||
* | Make decryption code better readable | Arthur de Jong | 2014-05-25 | 1 | -5/+9 | |
| | ||||||
* | Add tests for invalid PSKC files | Arthur de Jong | 2014-05-23 | 5 | -1/+66 | |
| | ||||||
* | Raise exceptions on some parsing problems | Arthur de Jong | 2014-05-23 | 2 | -2/+44 | |
| | ||||||
* | Fix install_requires | Arthur de Jong | 2014-05-23 | 1 | -1/+1 | |
| | ||||||
* | Get files ready for 0.1 release0.1 | Arthur de Jong | 2014-05-23 | 3 | -1/+258 | |
| | ||||||
* | Use pskcxml as file name extension | Arthur de Jong | 2014-05-23 | 10 | -9/+9 | |
| | | | | This is the extension that is suggested in RFC6030. | |||||
* | Improve IANA links | Arthur de Jong | 2014-05-23 | 2 | -2/+2 | |
| | ||||||
* | Improve test | Arthur de Jong | 2014-05-23 | 1 | -2/+7 | |
| | | | | | This tests that, before the PSKC ecnryption is key available, the secret from the key cannot be extracted. | |||||
* | Provide Sphinx documentation | Arthur de Jong | 2014-05-19 | 7 | -0/+720 | |
| | ||||||
* | Add missing policy constant | Arthur de Jong | 2014-05-19 | 1 | -0/+3 | |
| | ||||||
* | Fix attribute name in docstring | Arthur de Jong | 2014-05-19 | 1 | -1/+1 | |
| | ||||||
* | Update README | Arthur de Jong | 2014-05-19 | 1 | -5/+28 | |
| | ||||||
* | Fix dateutil dependency | Arthur de Jong | 2014-05-17 | 2 | -2/+2 | |
| | | | | This also ignores downloaded .egg files. | |||||
* | Fix module description | Arthur de Jong | 2014-04-19 | 1 | -2/+1 | |
| | ||||||
* | Move PSKC class to toplevel module | Arthur de Jong | 2014-04-19 | 2 | -42/+44 | |
| | | | | This also splits the parsing to a parse() function for consistency. | |||||
* | Provide pskc.key docstrings | Arthur de Jong | 2014-04-19 | 2 | -48/+115 | |
| | | | | | | | | | 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. | |||||
* | Provide pskc.parse docstrings | Arthur de Jong | 2014-04-19 | 1 | -1/+19 | |
| | | | | | This documents most of the API of the parsing functions and the PSKC class. | |||||
* | Complete pskc.policy docstrings | Arthur de Jong | 2014-04-19 | 1 | -2/+4 | |
| | | | | Also contains small consistency improvement. | |||||
* | Provide pskc.mac docstrings | Arthur de Jong | 2014-04-19 | 1 | -8/+34 | |
| | | | | This also hides two properties that are not part of the public API. | |||||
* | Provide pskc.encryption docstrings | Arthur de Jong | 2014-04-19 | 1 | -5/+41 | |
| | | | | This documents classes in the pskc.encryption module. |