summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'userspace' into integrationintegrationMiloslav Trmač2010-08-2314-146/+2478
|\ | | | | | | | | Conflicts: examples/Makefile
| * Add copyright notice to userspace/ncrypto.hMiloslav Trmač2010-08-231-0/+28
| |
| * Add Red Hat copyright notices to libcryptodevMiloslav Trmač2010-08-237-0/+193
| |
| * Avoid unnecessary internal relocationsMiloslav Trmač2010-08-236-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-233-0/+3
| |
| * Drop a few unnecessary #includes from examplesMiloslav Trmač2010-08-232-8/+0
| |
| * Provide a nicer example on including <ncrypto.h>Miloslav Trmač2010-08-232-4/+4
| |
| * Allow overriding CFLAGSMiloslav Trmač2010-08-231-3/+8
| |
| * Abstract <linux/ncr.h> from <ncrypto.h> usersMiloslav Trmač2010-08-2310-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 MakefileMiloslav Trmač2010-08-231-0/+3
| |
| * Add port of examples/pk.c to libcryptodevMiloslav Trmač2010-08-233-2/+753
| |
| * Add derivation algorithm param to ncr_key_derive()Miloslav Trmač2010-08-232-2/+3
| |
| * Add remaining accessors for ncr_key_params_tMiloslav Trmač2010-08-232-0/+63
| |
| * Implement DH key paramsMiloslav Trmač2010-08-232-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-232-0/+11
| |
| * Add helper function ncr_key_get_infoMiloslav Trmač2010-08-231-36/+17
| | | | | | | | This avoids code duplication in the various ncr_key_get_* functions.
| * Implement missing algorithm-specific keygen paramsMiloslav Trmač2010-08-233-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_sizeMiloslav Trmač2010-08-231-1/+1
| | | | | | | | The ids are not really used for anything so far
| * Use EOVERFLOW if input data is too largeMiloslav Trmač2010-08-232-3/+9
| |
| * Support NCR_OP_VERIFY in *_once_*Miloslav Trmač2010-08-231-2/+22
| |
| * Support output data in NCRIO_SESSION_UPDATEMiloslav Trmač2010-08-233-8/+12
| |
| * Use NCR_KEY_INVALID for clarityMiloslav Trmač2010-08-231-1/+1
| |
| * Remove somewhat confusing castsMiloslav Trmač2010-08-231-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-231-2/+0
| | | | | | | | | | That is an operation reserved for root, and should be done during system initialization.
| * Fix and reenable unwrapping testMiloslav Trmač2010-08-231-2/+3
| |
| * Use the correct wrapping keyMiloslav Trmač2010-08-231-2/+2
| | | | | | | | ... as specified in the RFC3394 test vector in section 4.1.
| * Remove an unused variableMiloslav Trmač2010-08-231-2/+0
| |
| * Don't prohibit NCR_ALG_NULL.Miloslav Trmač2010-08-231-1/+1
| | | | | | | | It's used in examples/speed.c for testing.
| * Don't assume NCR_SESSION_INVALID is 0Miloslav Trmač2010-08-231-4/+4
| |
| * Don't assume NCR_KEY_INVALID is 0Jan Chadima2010-08-231-13/+13
| |
| * Use O_CLOEXEC for the internal file descriptorJan Chadima2010-08-231-1/+1
| |
| * Delete libcryptodev.so* on (make clean)Miloslav Trmač2010-08-231-1/+1
| |
| * Integrate examples/ncr_lib.cMiloslav Trmač2010-08-232-1/+7
| |
| * Add Jan's port of ncr.c to libcryptodev.Jan Chadima2010-08-231-0/+476
| |
| * Don't repeat the list of example programsMiloslav Trmač2010-08-231-1/+1
| |
| * Userspace library updates from JanJan Chadima2010-08-232-12/+13
| |
| * Add missing "return";Miloslav Trmač2010-08-231-0/+1
| |
| * Include the header file for close()Miloslav Trmač2010-08-231-0/+1
| |
| * Update prototype of ncr_key_generate_params_set_rsa_eMiloslav Trmač2010-08-231-1/+1
| |
| * Initial userspace library versionJan Chadima2010-08-239-142/+848
| |
* | Merge branch 'drop-old-interface' into integrationMiloslav Trmač2010-08-2320-1743/+24
|\ \ | | | | | | | | | | | | Conflicts: cryptodev_main.c
| * | Drop <cryptodev.h>Miloslav Trmač2010-08-2320-1742/+22
| | | | | | | | | | | | Also drop implementation of its ioctls, examples, openssl patch.
| * | Support IV size as large as <ncr.h> doesMiloslav Trmač2010-08-231-1/+2
| |/ | | | | | | (removing the last dependency on <cryptodev.h> in the process).
* / Drop unnecessary "file *" argument to ncr_ioctl()Miloslav Trmač2010-08-233-5/+3
|/
* Do not include linux headers to libtom files. This will allow easier ↵Nikos Mavrogiannopoulos2010-08-1930-28/+24
| | | | replacement of them.
* Merge branch 'bugfixes'Miloslav Trmač2010-08-121-1/+1
|\
| * Fix prime testingMiloslav Trmač2010-08-121-1/+1
| | | | | | | | Upstream commit a53ea341274300323cd2e664440d8bc0c4d8328a
* | Merge branch 'replace-lists'Miloslav Trmač2010-08-080-0/+0
|\ \ | | | | | | | | | | | | Conflicts: ncr-key.c
| * | Finally remove the unused list_sem_st.Miloslav Trmač2010-08-081-5/+0
| | |
| * | Stop looking in the hash table after the first match.Miloslav Trmač2010-08-081-1/+7
| | | | | | | | | | | | | | | There should be only one entry anyway. This reduces the average lookup time when there are hash collisions roughly by half.