Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing newlineuserspace | Miloslav Trmač | 2010-08-25 | 1 | -1/+1 |
| | | | | ... which simplifies merging | ||||
* | Port key wrapping tests to *_lib.c | Miloslav Trmač | 2010-08-24 | 4 | -4/+145 |
| | |||||
* | Merge branch 'bugfixes' into userspace | Miloslav Trmač | 2010-08-24 | 8 | -43/+78 |
|\ | |||||
| * | 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 |
| | | |||||
* | | Add copyright notice to userspace/ncrypto.h | Miloslav Trmač | 2010-08-24 | 1 | -0/+28 |
| | | |||||
* | | Add Red Hat copyright notices to libcryptodev | Miloslav Trmač | 2010-08-24 | 7 | -0/+193 |
| | | |||||
* | | Avoid unnecessary internal relocations | Miloslav Trmač | 2010-08-24 | 6 | -9/+21 |
| | | | | | | | | | | | | | | | | | | | | Use __attribute__((visibility("hidden"))) for __ncr_file_descriptor to take advantage of PIC addressing instead of going through the dynamic linker. Add an internal alias for ncr_global_init() for the same reason. Add an internal header file to consolidate the "extern" references in the process. | ||||
* | | Don't assume <ncr.h> includes <stdint.h> | Miloslav Trmač | 2010-08-24 | 3 | -0/+3 |
| | | |||||
* | | Drop a few unnecessary #includes from examples | Miloslav Trmač | 2010-08-24 | 2 | -8/+0 |
| | | |||||
* | | Provide a nicer example on including <ncrypto.h> | Miloslav Trmač | 2010-08-24 | 2 | -4/+4 |
| | | |||||
* | | Allow overriding CFLAGS | Miloslav Trmač | 2010-08-24 | 1 | -3/+8 |
| | | |||||
* | | Abstract <linux/ncr.h> from <ncrypto.h> users | Miloslav Trmač | 2010-08-24 | 10 | -9/+18 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Attach "userspace/" into top-level Makefile | Miloslav Trmač | 2010-08-24 | 1 | -0/+3 |
| | | |||||
* | | Add port of examples/pk.c to libcryptodev | Miloslav Trmač | 2010-08-24 | 3 | -2/+753 |
| | | |||||
* | | Add derivation algorithm param to ncr_key_derive() | Miloslav Trmač | 2010-08-24 | 2 | -2/+3 |
| | | |||||
* | | Add remaining accessors for ncr_key_params_t | Miloslav Trmač | 2010-08-24 | 2 | -0/+63 |
| | | |||||
* | | Implement DH key params | Miloslav Trmač | 2010-08-24 | 2 | -4/+9 |
| | | | | | | | | | | New function ncr_key_params_set_dh_pub(), replacing ncr_key_params_set_dh_key(). | ||||
* | | Add ncr_key_get_algorithm() | Miloslav Trmač | 2010-08-24 | 2 | -0/+11 |
| | | |||||
* | | Add helper function ncr_key_get_info | Miloslav Trmač | 2010-08-24 | 1 | -36/+17 |
| | | | | | | | | This avoids code duplication in the various ncr_key_get_* functions. | ||||
* | | Implement missing algorithm-specific keygen params | Miloslav Trmač | 2010-08-24 | 3 | -7/+64 |
| | | | | | | | | | | | | Rename ncr_key_generate_params_set_bits to ncr_key_generate_params_set_secret_bits in the process, an incompatible change. | ||||
* | | Allow empty id_size | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | | | | | | | The ids are not really used for anything so far | ||||
* | | Use EOVERFLOW if input data is too large | Miloslav Trmač | 2010-08-24 | 2 | -3/+9 |
| | | |||||
* | | Support NCR_OP_VERIFY in *_once_* | Miloslav Trmač | 2010-08-24 | 1 | -2/+22 |
| | | |||||
* | | Support output data in NCRIO_SESSION_UPDATE | Miloslav Trmač | 2010-08-24 | 3 | -8/+12 |
| | | |||||
* | | Use NCR_KEY_INVALID for clarity | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Remove somewhat confusing casts | Miloslav Trmač | 2010-08-24 | 1 | -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-24 | 1 | -2/+0 |
| | | | | | | | | | | That is an operation reserved for root, and should be done during system initialization. | ||||
* | | Fix and reenable unwrapping test | Miloslav Trmač | 2010-08-24 | 1 | -2/+3 |
| | | |||||
* | | Use the correct wrapping key | Miloslav Trmač | 2010-08-24 | 1 | -2/+2 |
| | | | | | | | | ... as specified in the RFC3394 test vector in section 4.1. | ||||
* | | Remove an unused variable | Miloslav Trmač | 2010-08-24 | 1 | -2/+0 |
| | | |||||
* | | Don't prohibit NCR_ALG_NULL. | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | | | | | | | It's used in examples/speed.c for testing. | ||||
* | | Don't assume NCR_SESSION_INVALID is 0 | Miloslav Trmač | 2010-08-24 | 1 | -4/+4 |
| | | |||||
* | | Don't assume NCR_KEY_INVALID is 0 | Jan Chadima | 2010-08-24 | 1 | -13/+13 |
| | | |||||
* | | Use O_CLOEXEC for the internal file descriptor | Jan Chadima | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Delete libcryptodev.so* on (make clean) | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Integrate examples/ncr_lib.c | Miloslav Trmač | 2010-08-24 | 2 | -1/+7 |
| | | |||||
* | | Add Jan's port of ncr.c to libcryptodev. | Jan Chadima | 2010-08-24 | 1 | -0/+476 |
| | | |||||
* | | Don't repeat the list of example programs | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Userspace library updates from Jan | Jan Chadima | 2010-08-24 | 2 | -12/+13 |
| | | |||||
* | | Add missing "return"; | Miloslav Trmač | 2010-08-24 | 1 | -0/+1 |
| | | |||||
* | | Include the header file for close() | Miloslav Trmač | 2010-08-24 | 1 | -0/+1 |
| | | |||||
* | | Update prototype of ncr_key_generate_params_set_rsa_e | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Initial userspace library version | Jan Chadima | 2010-08-24 | 9 | -142/+848 |
|/ | |||||
* | Compare cryptodev to NCR on a fair basis. | Nikos Mavrogiannopoulos | 2010-08-23 | 1 | -24/+24 |
| | |||||
* | When calculating algorithm strength consider 3DES as 112 bit cipher. | Nikos Mavrogiannopoulos | 2010-08-22 | 1 | -0/+5 |
| | |||||
* | more text | Nikos Mavrogiannopoulos | 2010-08-21 | 1 | -1/+4 |
| |