summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Add missing newlineuserspaceMiloslav Trmač2010-08-251-1/+1
| | | | ... which simplifies merging
* Port key wrapping tests to *_lib.cMiloslav Trmač2010-08-242-2/+140
|
* Merge branch 'bugfixes' into userspaceMiloslav Trmač2010-08-242-10/+13
|\
| * Make it possible to import private keysMiloslav Trmač2010-08-242-0/+5
| |
| * Reject prohibited key flags immediatelyMiloslav Trmač2010-08-241-10/+8
| | | | | | | | Silently ignoring user's requests is unexpected.
* | Don't assume <ncr.h> includes <stdint.h>Miloslav Trmač2010-08-242-0/+2
| |
* | Drop a few unnecessary #includes from examplesMiloslav Trmač2010-08-242-8/+0
| |
* | Provide a nicer example on including <ncrypto.h>Miloslav Trmač2010-08-242-4/+4
| |
* | Abstract <linux/ncr.h> from <ncrypto.h> usersMiloslav Trmač2010-08-241-1/+1
| | | | | | | | | | | | | | | | | | Let <ncrypto.h> users #include this header file alone, without caring about <linux/ncr.h>. To do so, set up a temporary copy of ncr.h so that the #include <linux/ncr.h> works at build time as well.
* | Add port of examples/pk.c to libcryptodevMiloslav Trmač2010-08-242-2/+752
| |
* | Implement missing algorithm-specific keygen paramsMiloslav Trmač2010-08-241-2/+2
| | | | | | | | | | | | Rename ncr_key_generate_params_set_bits to ncr_key_generate_params_set_secret_bits in the process, an incompatible change.
* | Support output data in NCRIO_SESSION_UPDATEMiloslav Trmač2010-08-241-2/+2
| |
* | Use NCR_KEY_INVALID for clarityMiloslav Trmač2010-08-241-1/+1
| |
* | Remove somewhat confusing castsMiloslav Trmač2010-08-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | "luckily" DIAGNOSTIC_DUMP does not quote its arguments, so DIAGNOSTIC_DUMP((int)array, size) expanded into ... fprintf(stderr, "%.2x:", (int)(int)array[out_index]); ... Still, it would break with more meticulous parenthesising, and the macro invocations appear to be casting an array to int.
* | Don't set the master key in an example program.Miloslav Trmač2010-08-241-2/+0
| | | | | | | | | | That is an operation reserved for root, and should be done during system initialization.
* | Fix and reenable unwrapping testMiloslav Trmač2010-08-241-2/+3
| |
* | Use the correct wrapping keyMiloslav Trmač2010-08-241-2/+2
| | | | | | | | ... as specified in the RFC3394 test vector in section 4.1.
* | Remove an unused variableMiloslav Trmač2010-08-241-2/+0
| |
* | Integrate examples/ncr_lib.cMiloslav Trmač2010-08-241-1/+6
| |
* | Add Jan's port of ncr.c to libcryptodev.Jan Chadima2010-08-241-0/+476
| |
* | Don't repeat the list of example programsMiloslav Trmač2010-08-241-1/+1
|/
* Compare cryptodev to NCR on a fair basis.Nikos Mavrogiannopoulos2010-08-231-24/+24
|
* more textNikos Mavrogiannopoulos2010-08-211-1/+4
|
* Improvements in key wrapping. Allowed symmetric keys to wrap assymetric ones.Nikos Mavrogiannopoulos2010-08-211-2/+29
|
* Added KEY_WRAPPING flag that allows a key to be used for wrapping other keys.Nikos Mavrogiannopoulos2010-08-192-6/+217
| | | | | 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-084-0/+4
| | | | | | | | | | | | | 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.
* Implemented Diffie Hellman Key exchange.Nikos Mavrogiannopoulos2010-07-271-1/+151
|
* Added Diffie Hellman key generation.Nikos Mavrogiannopoulos2010-07-271-0/+79
|
* 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-264-573/+92
|
* No need for ncr-direct. All session operations are being done on keys or on ↵Nikos Mavrogiannopoulos2010-07-254-665/+82
| | | | userspace data.
* Key wrapping operates directly to userspace data. No need to involve the ↵Nikos Mavrogiannopoulos2010-07-251-17/+16
| | | | data_t structures.
* Added the NCR-DIRECT to speed test.Nikos Mavrogiannopoulos2010-07-241-4/+89
|
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-245-22/+479
|
* Simplified the session_op structure and combined the OP_SIGN with the OP_DIGESTNikos Mavrogiannopoulos2010-07-243-21/+21
| | | | for digest algorithms.
* Splitted key from key_params structure. Also separated dsa from rsa ↵Nikos Mavrogiannopoulos2010-07-233-24/+24
| | | | structure in params.
* Minor fixes in example programs.Nikos Mavrogiannopoulos2010-07-232-9/+11
|
* Append_flag was removed.Nikos Mavrogiannopoulos2010-07-233-24/+0
|
* Revert "initial support for userspace data."Nikos Mavrogiannopoulos2010-07-233-132/+35
| | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
* Revert "Modified NCR-USER API to "simplify" and allow setting of size of ↵Nikos Mavrogiannopoulos2010-07-234-935/+17
| | | | | | 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-214-17/+935
| | | | structure without special system call.
* initial support for userspace data.Nikos Mavrogiannopoulos2010-07-213-35/+132
|
* Public Keys are being exported to SubjectPublicKeyInfo format, instead of ↵Nikos Mavrogiannopoulos2010-07-191-15/+100
| | | | custom formats. For RSA keys the PKCS #1 format can be used as well.
* Fixed RSA encryption and decryption.Nikos Mavrogiannopoulos2010-07-191-65/+212
|
* Added NULL cipher and a speed program to compare old cryptodev operations ↵Nikos Mavrogiannopoulos2010-07-191-5/+120
| | | | and ncr ones.
* Backported zero copy /dev/crypto operations from master.Nikos Mavrogiannopoulos2010-07-192-2/+175
|
* Corrected RSA signature generation/verification.Nikos Mavrogiannopoulos2010-07-142-5/+299
| | | | 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.
* Several fixes. RSA key generation tested and works.Nikos Mavrogiannopoulos2010-07-071-10/+18
|