Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch 'pk-transparent-hash' | Miloslav Trmač | 2010-08-27 | 5 | -14/+318 | |
|\ | | | | | | | | | Conflicts: ncr-int.h | |||||
| * | Add transparent hash signature examples | Miloslav Trmač | 2010-08-27 | 1 | -0/+245 | |
| | | ||||||
| * | Allow sharing keys for "regular" and "transparent" algorithms | Miloslav Trmač | 2010-08-27 | 1 | -1/+3 | |
| | | ||||||
| * | Implement PK signatures with transparent hashes | Miloslav Trmač | 2010-08-27 | 3 | -13/+70 | |
| | | ||||||
* | | Merge branch 'session_update-iv' | Miloslav Trmač | 2010-08-27 | 2 | -0/+23 | |
|\ \ | ||||||
| * | | Add support for changing IVs in sessions | Miloslav Trmač | 2010-08-27 | 2 | -0/+23 | |
| |/ | ||||||
* | | Merge remote branch 'origin/newapi' | Miloslav Trmač | 2010-08-27 | 7 | -61/+194 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/ncr.c examples/pk.c ncr-key-wrap.c ncr-key.c ncr.h | |||||
| * | | Unwrapping keys are restricted the same way as wrapping keys. | Nikos Mavrogiannopoulos | 2010-08-26 | 2 | -3/+3 | |
| | | | ||||||
| * | | enforce the key wrap version. | Nikos Mavrogiannopoulos | 2010-08-25 | 1 | -2/+10 | |
| | | | ||||||
| * | | Added ENCRYPT, UNWRAPPING and VERIFY key flags | Nikos Mavrogiannopoulos | 2010-08-25 | 5 | -6/+10 | |
| | | | ||||||
| * | | The RFC5649 wrapping algorithm now includes a DER encoding of the data to ↵ | Nikos Mavrogiannopoulos | 2010-08-25 | 3 | -27/+170 | |
| | | | | | | | | | | | | distinguish between keys of different types. This prevents keys being unwrapped in a wrong type. | |||||
| * | | use the rfc3394 suffix. | Nikos Mavrogiannopoulos | 2010-08-25 | 1 | -2/+2 | |
| | | | ||||||
* | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-25 | 2 | -4/+4 | |
|\ \ \ | ||||||
| * | | | Make some objects static | Miloslav Trmač | 2010-08-25 | 2 | -4/+4 | |
| | | | | ||||||
* | | | | Merge branch 'clone-session' | Miloslav Trmač | 2010-08-25 | 7 | -15/+357 | |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_int.h ncr-sessions.c | |||||
| * | | | | Add hash cloning example. | Miloslav Trmač | 2010-08-25 | 1 | -0/+218 | |
| | | | | | ||||||
| * | | | | Implement cloning hash sessions | Miloslav Trmač | 2010-08-25 | 4 | -17/+134 | |
| | | | | | ||||||
| * | | | | Remove a redundant argument of cryptodev_hash_init | Miloslav Trmač | 2010-08-25 | 5 | -8/+8 | |
| | | | | | ||||||
| * | | | | Define session cloning interface | Miloslav Trmač | 2010-08-25 | 3 | -0/+7 | |
| | | | | | ||||||
* | | | | | Merge branch 'cleanups' | Miloslav Trmač | 2010-08-25 | 5 | -8/+8 | |
|\ \ \ \ \ | ||||||
| * | | | | | Remove a redundant argument of cryptodev_hash_init | Miloslav Trmač | 2010-08-25 | 5 | -8/+8 | |
| | | | | | | ||||||
* | | | | | | Merge branch 'ids-after-initialization' | Miloslav Trmač | 2010-08-25 | 1 | -121/+193 | |
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | | Conflicts: ncr-sessions.c | |||||
| * | | | | Document locking. | Miloslav Trmač | 2010-08-25 | 1 | -16/+31 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Document how members of session_item_st are protected, and what assumptions are made by internal functions. | |||||
| * | | | | Move session_item_st definition to ncr-sessions.c | Miloslav Trmač | 2010-08-25 | 2 | -26/+26 | |
| | | | | | | | | | | | | | | | | | | | | It is not used anywhere else. | |||||
| * | | | | Unpublish session ID at start of ncr_session_final. | Miloslav Trmač | 2010-08-25 | 1 | -21/+28 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This means that ncr_session_final() can't be called on one ID twice, ensuring that the ID is still unique throughout the runtime of ncr_session_final(). (Note that this is not guaranteed for ncr_session_update(): a concurrent thread can call ncr_session_final() on the ID and reuse it before ncr_session_update() finishes.) | |||||
| * | | | | Rename ncr_sessions_item_get() to session_get_ref() | Miloslav Trmač | 2010-08-25 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | ... for consistency with the other session ID handlers. | |||||
| * | | | | Simplify refcount handling in session_init | Miloslav Trmač | 2010-08-25 | 1 | -5/+4 | |
| | | | | | ||||||
| * | | | | Don't allocate session IDs for *_ONCE. | Miloslav Trmač | 2010-08-25 | 1 | -19/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Also skip locking the mutex - the session is private to the calling thread, nothing else can access it. | |||||
| * | | | | Move ID handling out of _ncr_session_init | Miloslav Trmač | 2010-08-25 | 1 | -22/+35 | |
| | | | | | ||||||
| * | | | | Move session lookup and locking out of _ncr_session_final | Miloslav Trmač | 2010-08-25 | 1 | -28/+46 | |
| | | | | | ||||||
| * | | | | Remove redundant deinitializations. | Miloslav Trmač | 2010-08-25 | 1 | -7/+0 | |
| | | | | | | | | | | | | | | | | | | | | _ncr_sessions_item_put() clears this all on last put. | |||||
| * | | | | Avoid duplicit lookup and locking in _try_session_update | Miloslav Trmač | 2010-08-25 | 1 | -31/+11 | |
| | | | | | ||||||
| * | | | | Move session lookup and locking out of low-level functions | Miloslav Trmač | 2010-08-25 | 1 | -34/+49 | |
| | | | | | | | | | | | | | | | | | | | | While doing this, also lock mem_mutex during _ncr_session_update_key. | |||||
| * | | | | Publish sessions only after initialization | Miloslav Trmač | 2010-08-25 | 1 | -2/+2 | |
| | | | | | ||||||
| * | | | | Separate session ID allocation from object creation | Miloslav Trmač | 2010-08-25 | 1 | -15/+57 | |
| | | | | | ||||||
| * | | | | Make some session functions static | Miloslav Trmač | 2010-08-25 | 2 | -6/+5 | |
| | |_|/ | |/| | | ||||||
* | | | | Don't duplicate the list of example programs | Miloslav Trmač | 2010-08-25 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Move session_item_st definition to ncr-sessions.c | Miloslav Trmač | 2010-08-25 | 2 | -26/+26 | |
| | | | | | | | | | | | | | | | | It is not used anywhere else. | |||||
* | | | | Remove redundant deinitializations. | Miloslav Trmač | 2010-08-25 | 1 | -7/+0 | |
| | | | | | | | | | | | | | | | | _ncr_sessions_item_put() clears this all on last put. | |||||
* | | | | Make some session functions static | Miloslav Trmač | 2010-08-25 | 2 | -6/+5 | |
| | | | | ||||||
* | | | | Simplify key flag updates | Miloslav Trmač | 2010-08-25 | 3 | -51/+36 | |
|/ / / | ||||||
* | | | Fix wrapping test conversions | Miloslav Trmač | 2010-08-25 | 2 | -6/+11 | |
| | | | ||||||
* | | | Merge branch 'bugfixes' into nlattr | Miloslav Trmač | 2010-08-25 | 8 | -37/+93 | |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_main.c examples/ncr.c examples/pk.c ncr-int.h ncr-key-wrap.c ncr-key.c ncr.c ncr.h | |||||
| * | | Make it possible to import private keys | Miloslav Trmač | 2010-08-24 | 4 | -7/+19 | |
| | | | ||||||
| * | | Base access decisions only on capable(), not euid | Miloslav Trmač | 2010-08-24 | 2 | -2/+2 | |
| | | | ||||||
| * | | Reject prohibited key flags immediately | Miloslav Trmač | 2010-08-24 | 4 | -24/+50 | |
| | | | | | | | | | | | | Silently ignoring user's requests is unexpected. | |||||
| * | | Provide file_operations::unlocked_ioctl. | Miloslav Trmač | 2010-08-24 | 3 | -7/+6 | |
| | | | | | | | | | | | | | | | | | | file_operations::ioctl is no longer supported in recent kernels. compat_ioctl is not running under the BKL, so the code has to do its own locking anyway (although not everything currently does). | |||||
| * | | Drop unnecessary "file *" argument to ncr_ioctl() | Miloslav Trmač | 2010-08-24 | 3 | -5/+3 | |
| |/ | ||||||
* | | Renumber ioctls | Miloslav Trmač | 2010-08-25 | 1 | -18/+17 | |
| | | | | | | | | | | | | | | - The ranges in Documentation/ioctl/ioctl-number.txt are allocated in hexadecimal digits - The operation identifer must be <= 255 - Leave smaller spaces to give other drivers a chance | |||||
* | | Fix ioctl direction | Miloslav Trmač | 2010-08-25 | 1 | -1/+1 | |
| | |