lists.arthurdejong.org
RSS feed

python-pskc branch master updated. 591bb5dac7a1faebc59017de71ddb584da3c9586

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-pskc branch master updated. 591bb5dac7a1faebc59017de71ddb584da3c9586



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".

The branch, master has been updated
       via  591bb5dac7a1faebc59017de71ddb584da3c9586 (commit)
      from  b952b935314e77a01cd71448730fe029978d1627 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/python-pskc/commit/?id=591bb5dac7a1faebc59017de71ddb584da3c9586

commit 591bb5dac7a1faebc59017de71ddb584da3c9586
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Apr 11 21:31:44 2014 +0200

    Document key and pin usage values

diff --git a/pskc/policy.py b/pskc/policy.py
index 7a15ced..39dd191 100644
--- a/pskc/policy.py
+++ b/pskc/policy.py
@@ -44,6 +44,48 @@ class Policy(object):
     usage is not permitted.
     """
 
+    # Key is used for OTP generation.
+    KEY_USE_OTP = 'OTP'
+
+    # Key is used for Challenge/Response purposes.
+    KEY_USE_CR = 'CR'
+
+    # For generating keyed message digests.
+    KEY_USE_INTEGRITY = 'Integrity'
+
+    # For checking keyed message digests.
+    KEY_USE_VERIFY = 'Verify'
+
+    # Unlocking device when wrong PIN has been entered too many times.
+    KEY_USE_UNLOCK = 'Unlock'
+
+    # Key is used for data decryption purposes.
+    KEY_USE_DECRYPT = 'Decrypt'
+
+    # The key is used for key wrap purposes.
+    KEY_USE_KEYWRAP = 'KeyWrap'
+
+    # The key is used for key unwrap purposes.
+    KEY_USE_UNWRAP = 'Unwrap'
+
+    # Use in a key derivation function to derive a new key.
+    KEY_USE_DERIVE = 'Derive'
+
+    # Generate a new key based on a random number and the previous value.
+    KEY_USE_GENERATE = 'Generate'
+
+    # The PIN is checked on the device before the key is used.
+    PIN_USE_LOCAL = 'Local'
+
+    # The response has the PIN prepanded and needs to be checked.
+    PIN_USE_PREPEND = 'Prepend'
+
+    # The response has the PIN appended and needs to be checked.
+    PIN_USE_APPEND = 'Append'
+
+    # The PIN is used in the algorithm computation.
+    PIN_USE_ALGORITHMIC = 'Algorithmic'
+
     def __init__(self, key=None, policy=None):
         """Create a new policy, optionally linked to the key and parsed."""
         self.start_date = None

-----------------------------------------------------------------------

Summary of changes:
 pskc/policy.py |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)


hooks/post-receive
-- 
python-pskc
-- 
To unsubscribe send an email to
python-pskc-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-pskc-commits/