Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pskc/mac.py
Commit message (Collapse)AuthorAgeFilesLines
* Provide a get_hmac() functionArthur de Jong2014-06-151-11/+16
| | | | | Refactor the functionality to find an HMAC function into a separate function.
* Raise exception when MAC validation failsArthur de Jong2014-06-141-5/+9
| | | | | | | | | 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.
* Automatically support all MACs in hashlibArthur de Jong2014-06-141-5/+15
| | | | | This uses the name of the hash to automatically get the correct hash object from Python's hashlib.
* Have parse module provide find() functionsArthur de Jong2014-06-141-9/+5
| | | | | | | | 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 Jong2014-06-141-1/+1
|
* Be more lenient in accepting algorithmsArthur de Jong2014-05-251-4/+1
|
* Provide pskc.mac docstringsArthur de Jong2014-04-191-8/+34
| | | | This also hides two properties that are not part of the public API.
* Move Key class to separate moduleArthur de Jong2014-04-191-1/+2
| | | | This also allows re-organising the imports a bit.
* Implement MAC checkingArthur de Jong2014-04-121-0/+74
This implements message message authentication code checking for the encrypted values if MACMethod and ValueMAC are present.