summaryrefslogtreecommitdiffstats
path: root/examples/ncr.c
Commit message (Collapse)AuthorAgeFilesLines
* Reject prohibited key flags immediatelyMiloslav Trmač2010-08-241-10/+8
| | | | Silently ignoring user's requests is unexpected.
* Added KEY_WRAPPING flag that allows a key to be used for wrapping other keys.Nikos Mavrogiannopoulos2010-08-191-6/+101
| | | | | Only superuser can enable this flag. Prevent short keys to wrap longer ones. Added initial stuff for supporting wrapping of private and public keys.
* Use types from <linux/types.h> for public headers.Miloslav Trmač2010-08-081-0/+1
| | | | | | | | | | | | | When included in the kernel tree, <inttypes.h> is not available, so <linux/types.h> has to be used. <linux/types.h> does not provide the uintNN_t and size_t types when installed to /usr/include/linux (package kernel-headers on Fedora). Therefore, use the types from <linux/types.h> that are available in userspace. Also fix user-space users of the headers not to assume that they provide the <stdint.h> types.
* Added test case for hashing secret keys. Some corrections in independent ↵Nikos Mavrogiannopoulos2010-07-261-0/+116
| | | | session updates.
* removed the data type.Nikos Mavrogiannopoulos2010-07-261-356/+43
|
* No need for ncr-direct. All session operations are being done on keys or on ↵Nikos Mavrogiannopoulos2010-07-251-84/+32
| | | | userspace data.
* Key wrapping operates directly to userspace data. No need to involve the ↵Nikos Mavrogiannopoulos2010-07-251-17/+16
| | | | data_t structures.
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-6/+9
|
* Simplified the session_op structure and combined the OP_SIGN with the OP_DIGESTNikos Mavrogiannopoulos2010-07-241-7/+7
| | | | for digest algorithms.
* Splitted key from key_params structure. Also separated dsa from rsa ↵Nikos Mavrogiannopoulos2010-07-231-5/+5
| | | | structure in params.
* Minor fixes in example programs.Nikos Mavrogiannopoulos2010-07-231-9/+10
|
* Append_flag was removed.Nikos Mavrogiannopoulos2010-07-231-19/+0
|
* Revert "initial support for userspace data."Nikos Mavrogiannopoulos2010-07-231-20/+30
| | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
* Revert "Modified NCR-USER API to "simplify" and allow setting of size of ↵Nikos Mavrogiannopoulos2010-07-231-1/+10
| | | | | | data structure without special system call." This reverts commit 5689c9734223fb349bba526d620823a803c3b67e.
* Modified NCR-USER API to "simplify" and allow setting of size of data ↵Nikos Mavrogiannopoulos2010-07-211-10/+1
| | | | structure without special system call.
* initial support for userspace data.Nikos Mavrogiannopoulos2010-07-211-30/+20
|
* Corrected RSA signature generation/verification.Nikos Mavrogiannopoulos2010-07-141-2/+2
| | | | Added Test for RSA and DSA signature generation and verification.
* OP_MAC was deprecated by OP_SIGN.Nikos Mavrogiannopoulos2010-07-141-5/+5
|
* Initial additions to have PK encryption/decryption. Separated operationsNikos Mavrogiannopoulos2010-07-121-36/+32
| | | | | on keys to read/write to prevent overwriting a key while using it. Several other cleanups.
* Public and private keys are being generated in a new workqueue. Some other ↵Nikos Mavrogiannopoulos2010-07-071-0/+1220
fixes and optimizations.