Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get files ready for 0.2 release0.2 | Arthur de Jong | 2014-06-19 | 1 | -1/+1 |
| | |||||
* | Only catch normal exceptions | Arthur de Jong | 2014-06-19 | 1 | -1/+1 |
| | |||||
* | Remove unused import | Arthur de Jong | 2014-06-18 | 1 | -2/+0 |
| | |||||
* | PEP8 fix | Arthur de Jong | 2014-06-17 | 1 | -2/+2 |
| | |||||
* | Remove __str__ from exception | Arthur de Jong | 2014-06-17 | 1 | -3/+1 |
| | | | | | The message property has been deprecated as of Python 2.6 and printing the first argument is the default. | ||||
* | Simplify finding ElementTree implementation | Arthur de Jong | 2014-06-15 | 1 | -10/+1 |
| | | | | | These are the only ElementTree implementations that have been tested to provide the needed functionality (mostly namespaces). | ||||
* | Refactor out some functions to parse | Arthur de Jong | 2014-06-15 | 3 | -26/+26 |
| | | | | | This introduces the getint() and getbool() functions in parse to avoid some code duplication. | ||||
* | Add support for setting secret | Arthur de Jong | 2014-06-15 | 1 | -24/+39 |
| | | | | | | This supports setters for the secret, counter, time_offset, time_interval and time_drift properties. Setting these values stores the values unencrypted internally. | ||||
* | Support PBKDF2 PRF argument | Arthur de Jong | 2014-06-15 | 1 | -5/+9 |
| | | | | | Support specifying a pseudorandom function for PBKDF2 key derivation. It currently supports any HMAC that the MAC checking also supports. | ||||
* | Provide a get_hmac() function | Arthur de Jong | 2014-06-15 | 1 | -11/+16 |
| | | | | | Refactor the functionality to find an HMAC function into a separate function. | ||||
* | Raise exception when MAC validation fails | Arthur de Jong | 2014-06-14 | 2 | -21/+24 |
| | | | | | | | | | This changes the way the check() function works to raise an exception when the MAC is not correct. The MAC is also now always checked before attempting decryption. This also renames the internal DataType.value property to a get_value() method for clarity. | ||||
* | Handle missing MAC algorithm properly | Arthur de Jong | 2014-06-14 | 1 | -1/+2 |
| | |||||
* | 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 | 2 | -3/+18 |
| | | | | | | | | | | | 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 | 1 | -0/+6 |
| | | | | | 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 | 1 | -0/+67 |
| | |||||
* | Support kw-aes128, kw-aes192 and kw-aes256 | Arthur de Jong | 2014-05-30 | 1 | -0/+9 |
| | | | | | 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 | 1 | -25/+61 |
| | | | | 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 | 1 | -6/+20 |
| | |||||
* | Provide an RFC 3394 AES key wrapping algorithm | Arthur de Jong | 2014-05-30 | 2 | -0/+78 |
| | | | | This also introduces an EncryptionError exception. | ||||
* | Always put a space between RFC and number | Arthur de Jong | 2014-05-29 | 1 | -7/+7 |
| | |||||
* | Support Tripple DES decryption | Arthur de Jong | 2014-05-29 | 1 | -0/+8 |
| | |||||
* | 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 | 2 | -8/+13 |
| | | | | | This also introduces a toplevel PSKCError exception that all exceptions have as parent. | ||||
* | 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 a function for adding a new key | Arthur de Jong | 2014-05-25 | 2 | -1/+16 |
| | |||||
* | Consistency improvement | Arthur de Jong | 2014-05-25 | 1 | -2/+2 |
| | |||||
* | Support creating an empty PSKC instance | Arthur de Jong | 2014-05-25 | 1 | -6/+9 |
| | |||||
* | 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 | 2 | -2/+17 |
| | |||||
* | Make decryption code better readable | Arthur de Jong | 2014-05-25 | 1 | -5/+9 |
| | |||||
* | Raise exceptions on some parsing problems | Arthur de Jong | 2014-05-23 | 2 | -2/+44 |
| | |||||
* | Use pskcxml as file name extension | Arthur de Jong | 2014-05-23 | 1 | -1/+1 |
| | | | | This is the extension that is suggested in RFC6030. | ||||
* | 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 |
| | |||||
* | 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 | 1 | -47/+114 |
| | | | | | | | | | 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. | ||||
* | Move Key class to separate module | Arthur de Jong | 2014-04-19 | 4 | -188/+239 |
| | | | | This also allows re-organising the imports a bit. | ||||
* | Add initial setup script | Arthur de Jong | 2014-04-16 | 1 | -2/+22 |
| | |||||
* | Use slightly clearer names | Arthur de Jong | 2014-04-16 | 1 | -4/+4 |
| | |||||
* | Implement PBKDF2 key derivation | Arthur de Jong | 2014-04-13 | 1 | -0/+64 |
| | | | | | This supports deriving the key from a passphrase and information present in the DerivedKey and PBKDF2-params XML elements. | ||||
* | Add id attribute from EncryptionKey | Arthur de Jong | 2014-04-13 | 1 | -2/+5 |
| |