[Cryptech-Commits] [sw/pkcs11] branch master updated (fc8c37c -> a927c24)

git at cryptech.is git at cryptech.is
Tue Sep 22 20:06:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a change to branch master
in repository sw/pkcs11.

      from  fc8c37c   First pass at adding incremental digest support.  C_Digest*() only so far.  Compiles, not yet tested.
      adds  b2d4db9   Track changes to hal_rsa_key_t and hal_hash_state_t.
      adds  92325a4   Checkpoint of partial support for ECDSA.  Compiles, not yet tested, probably doesn't work.  Probably should merge state_access branch before going much further with this.
      adds  22a1a59   Merge branch 'master' into ecdsa
      adds  0e0a9ea   Refactor C_Sign() and C_Verify() to move algorithm-dependent code to helper functions.  As a happy side effect, this also simplifies locking slightly and gives us a straightforward path towards the *Update() and *Final() incremental-hashing functions. Compiles, not yet tested.
      adds  6a80ee5   Add ECDSA signature and verification.  Compiles, not tested.
      adds  ae7b3e1   verify_rsa_pkcs() should be static.
      adds  6613e3a   First cut at Python interface to PKCS #11 using ctypes API.
      adds  cce50cb   Add C_FindObject*() to py11.
      adds  1086cc3   Python ctypes arrays and pointers really do work just as in C, once one wraps one's brain around the syntactic differences.
      adds  04cb1eb   Fix size_t vs CK_ULONG type mismatch (platform dependent).
      adds  85ae539   Remove CKA_NAME_HASH_ALGORITHM for now.  It appears in the specification but not in the header file, so we don't know its numeric value in any case.  Re-add if and when it shows up in the header file.
      adds  d4dd9a8   Add attribute database based on attributes.yaml. Simplify prototype definitions and move them to separate module.
      adds  e9eb486   Move YAML parsing to external script so py11 doesn't have to worry about finding attributes.yaml at runtime.
      adds  3345ef8   Debug PKCS #11 ECDSA signature and verification.
      adds  cdb4d3a   Add C_CreateObject(), which required refactoring some of the template-checking code.
      adds  4efbecd   py11 support for C_CreateObject().
      adds  f12a5e8   Checkpoint of py11-test.py.
      adds  405a65d   Add C_SignUpdate(), C_SignFinal(), C_VerifyUpdate(), C_VerifyFinal().
      adds  fcb9943   Call correct underlying methods from wrappers.
      adds  261e1e3   Enable locking in py11.
      adds  ec3be7d   MUTEX callbacks via ctypes.  Beware of Garbage Collector.
      adds  fc79084   Implement mutexes in py11 library using threading.Lock objects.
      adds  91b051e   Debug mutex implementation.
      adds  48f0c98   Minimal documentation for py11.
      adds  35295b4   First step towards unit tests.
      adds  f723a3b   Unit tests for init, session, and login functions.
      adds  a939461   Add keyword arguments to C_GenerateKeyPair() in an attempt to present a saner API to the user.  This requires the library to know more than it really should about which attributes go into the public and private templates; if doing it this way proves infeasible, we may have to parse more details out of attributes.yaml to support this feature.
      adds  9e25e0d   More test cases.
      adds  95474a8   More key unit tests.
      adds  6c9f61a   Better test for keypair object class.
      adds  d52b9d3   Clean up Python APIs to C_FindObject*() and C_GetSlotList().
      adds  a927c24   Makefile cleanup.

No new revisions were added by this update.

Summary of changes:
 .gitignore                                         |    1 +
 GNUmakefile                                        |   42 +-
 attributes.yaml                                    |    4 -
 pkcs11.c                                           | 1760 ++++++++++++++------
 py11/__init__.py                                   |  270 +++
 py11/attribute_map.py                              |   54 +
 py11/attributes.py                                 |  101 ++
 py11/constants.py                                  |  615 +++++++
 py11/exceptions.py                                 |  128 ++
 py11/mutex.py                                      |   88 +
 py11/prototypes.py                                 |   85 +
 py11/types.py                                      |  180 ++
 ...at-attribute-comments => build-py11-attributes} |   85 +-
 scripts/py11-test.py                               |  173 ++
 unit_tests.py                                      |  280 ++++
 15 files changed, 3330 insertions(+), 536 deletions(-)
 create mode 100644 py11/__init__.py
 create mode 100644 py11/attribute_map.py
 create mode 100644 py11/attributes.py
 create mode 100644 py11/constants.py
 create mode 100644 py11/exceptions.py
 create mode 100644 py11/mutex.py
 create mode 100644 py11/prototypes.py
 create mode 100644 py11/types.py
 copy scripts/{format-attribute-comments => build-py11-attributes} (50%)
 create mode 100644 scripts/py11-test.py
 create mode 100644 unit_tests.py



More information about the Commits mailing list