Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'userspace' into integrationintegration | Miloslav Trmač | 2010-08-23 | 14 | -146/+2478 |
|\ | | | | | | | | | Conflicts: examples/Makefile | ||||
| * | Add copyright notice to userspace/ncrypto.h | Miloslav Trmač | 2010-08-23 | 1 | -0/+28 |
| | | |||||
| * | Add Red Hat copyright notices to libcryptodev | Miloslav Trmač | 2010-08-23 | 7 | -0/+193 |
| | | |||||
| * | Avoid unnecessary internal relocations | Miloslav Trmač | 2010-08-23 | 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-23 | 3 | -0/+3 |
| | | |||||
| * | Drop a few unnecessary #includes from examples | Miloslav Trmač | 2010-08-23 | 2 | -8/+0 |
| | | |||||
| * | Provide a nicer example on including <ncrypto.h> | Miloslav Trmač | 2010-08-23 | 2 | -4/+4 |
| | | |||||
| * | Allow overriding CFLAGS | Miloslav Trmač | 2010-08-23 | 1 | -3/+8 |
| | | |||||
| * | Abstract <linux/ncr.h> from <ncrypto.h> users | Miloslav Trmač | 2010-08-23 | 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-23 | 1 | -0/+3 |
| | | |||||
| * | Add port of examples/pk.c to libcryptodev | Miloslav Trmač | 2010-08-23 | 3 | -2/+753 |
| | | |||||
| * | Add derivation algorithm param to ncr_key_derive() | Miloslav Trmač | 2010-08-23 | 2 | -2/+3 |
| | | |||||
| * | Add remaining accessors for ncr_key_params_t | Miloslav Trmač | 2010-08-23 | 2 | -0/+63 |
| | | |||||
| * | Implement DH key params | Miloslav Trmač | 2010-08-23 | 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-23 | 2 | -0/+11 |
| | | |||||
| * | Add helper function ncr_key_get_info | Miloslav Trmač | 2010-08-23 | 1 | -36/+17 |
| | | | | | | | | This avoids code duplication in the various ncr_key_get_* functions. | ||||
| * | Implement missing algorithm-specific keygen params | Miloslav Trmač | 2010-08-23 | 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-23 | 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-23 | 2 | -3/+9 |
| | | |||||
| * | Support NCR_OP_VERIFY in *_once_* | Miloslav Trmač | 2010-08-23 | 1 | -2/+22 |
| | | |||||
| * | Support output data in NCRIO_SESSION_UPDATE | Miloslav Trmač | 2010-08-23 | 3 | -8/+12 |
| | | |||||
| * | Use NCR_KEY_INVALID for clarity | Miloslav Trmač | 2010-08-23 | 1 | -1/+1 |
| | | |||||
| * | Remove somewhat confusing casts | Miloslav Trmač | 2010-08-23 | 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-23 | 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-23 | 1 | -2/+3 |
| | | |||||
| * | Use the correct wrapping key | Miloslav Trmač | 2010-08-23 | 1 | -2/+2 |
| | | | | | | | | ... as specified in the RFC3394 test vector in section 4.1. | ||||
| * | Remove an unused variable | Miloslav Trmač | 2010-08-23 | 1 | -2/+0 |
| | | |||||
| * | Don't prohibit NCR_ALG_NULL. | Miloslav Trmač | 2010-08-23 | 1 | -1/+1 |
| | | | | | | | | It's used in examples/speed.c for testing. | ||||
| * | Don't assume NCR_SESSION_INVALID is 0 | Miloslav Trmač | 2010-08-23 | 1 | -4/+4 |
| | | |||||
| * | Don't assume NCR_KEY_INVALID is 0 | Jan Chadima | 2010-08-23 | 1 | -13/+13 |
| | | |||||
| * | Use O_CLOEXEC for the internal file descriptor | Jan Chadima | 2010-08-23 | 1 | -1/+1 |
| | | |||||
| * | Delete libcryptodev.so* on (make clean) | Miloslav Trmač | 2010-08-23 | 1 | -1/+1 |
| | | |||||
| * | Integrate examples/ncr_lib.c | Miloslav Trmač | 2010-08-23 | 2 | -1/+7 |
| | | |||||
| * | Add Jan's port of ncr.c to libcryptodev. | Jan Chadima | 2010-08-23 | 1 | -0/+476 |
| | | |||||
| * | Don't repeat the list of example programs | Miloslav Trmač | 2010-08-23 | 1 | -1/+1 |
| | | |||||
| * | Userspace library updates from Jan | Jan Chadima | 2010-08-23 | 2 | -12/+13 |
| | | |||||
| * | Add missing "return"; | Miloslav Trmač | 2010-08-23 | 1 | -0/+1 |
| | | |||||
| * | Include the header file for close() | Miloslav Trmač | 2010-08-23 | 1 | -0/+1 |
| | | |||||
| * | Update prototype of ncr_key_generate_params_set_rsa_e | Miloslav Trmač | 2010-08-23 | 1 | -1/+1 |
| | | |||||
| * | Initial userspace library version | Jan Chadima | 2010-08-23 | 9 | -142/+848 |
| | | |||||
* | | Merge branch 'drop-old-interface' into integration | Miloslav Trmač | 2010-08-23 | 20 | -1743/+24 |
|\ \ | | | | | | | | | | | | | Conflicts: cryptodev_main.c | ||||
| * | | Drop <cryptodev.h> | Miloslav Trmač | 2010-08-23 | 20 | -1742/+22 |
| | | | | | | | | | | | | Also drop implementation of its ioctls, examples, openssl patch. | ||||
| * | | Support IV size as large as <ncr.h> does | Miloslav Trmač | 2010-08-23 | 1 | -1/+2 |
| |/ | | | | | | | (removing the last dependency on <cryptodev.h> in the process). | ||||
* / | Drop unnecessary "file *" argument to ncr_ioctl() | Miloslav Trmač | 2010-08-23 | 3 | -5/+3 |
|/ | |||||
* | Do not include linux headers to libtom files. This will allow easier ↵ | Nikos Mavrogiannopoulos | 2010-08-19 | 30 | -28/+24 |
| | | | | replacement of them. | ||||
* | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-12 | 1 | -1/+1 |
|\ | |||||
| * | Fix prime testing | Miloslav Trmač | 2010-08-12 | 1 | -1/+1 |
| | | | | | | | | Upstream commit a53ea341274300323cd2e664440d8bc0c4d8328a | ||||
* | | Merge branch 'replace-lists' | Miloslav Trmač | 2010-08-08 | 0 | -0/+0 |
|\ \ | | | | | | | | | | | | | Conflicts: ncr-key.c | ||||
| * | | Finally remove the unused list_sem_st. | Miloslav Trmač | 2010-08-08 | 1 | -5/+0 |
| | | | |||||
| * | | Stop looking in the hash table after the first match. | Miloslav Trmač | 2010-08-08 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | There should be only one entry anyway. This reduces the average lookup time when there are hash collisions roughly by half. |