summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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.
| * | Use hash tables to speed up limit lookupMiloslav Trmač2010-08-081-45/+80
| | |
| * | Store all types of limits together.Miloslav Trmač2010-08-082-18/+25
| | | | | | | | | | | | | | | | | | A process/user that uses one type of crypto primitive is likely to use other types as well. This saves memory and simplifies lookup in the common case.
| * | Use <linux/idr.h> for session ID allocation and lookupMiloslav Trmač2010-08-083-69/+52
| | |
| * | Use <linux/idr.h> for key ID allocation and lookupMiloslav Trmač2010-08-083-110/+88
| | |
| * | Change NCR_{KEY,SESSION}_INVALIDMiloslav Trmač2010-08-081-2/+2
| | | | | | | | | | | | We will be able allocate ID 0. Note that this is an ABI change.
| * | Use ncr_lists instead of list_sem_st in intefacesMiloslav Trmač2010-08-085-92/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should result in no functionality change. This makes the code marginally more effective (reducing the number of "&lst->key" and "&lst->sessions" operations in the code, and moving them toward dereferences where they can be combined with member accesses), and more type-safe (prevents mixing the key and session list in most places because they the difference is only in the low-level accessor functions). Most importantly, this allows replacing list_sem_st without having to touch most of the functions again.
* | | Merge branch 'bugfixes'Miloslav Trmač2010-08-080-0/+0
|\ \ \ | | |/ | |/|
| * | Ensure sign_hash is valid in RSA sign/verifyMiloslav Trmač2010-08-081-0/+8
| | |
* | | Merge branch 'bugfixes'Miloslav Trmač2010-08-087-48/+54
|\| |
| * | Use types from <linux/types.h> for public headers.Miloslav Trmač2010-08-087-48/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'bugfixes'Miloslav Trmač2010-08-0710-23/+24
|\| | | | | | | | | | | | | | Conflicts: ncr-int.h
| * | Use <linux/uaccess.h> instead of <asm/uaccess.h>Miloslav Trmač2010-08-078-8/+8
| | | | | | | | | | | | Suggested by scripts/checkpatch.pl.
| * | Use <linux/ioctl.h> instead of <asm/ioctl.h>Miloslav Trmač2010-08-078-8/+8
| | | | | | | | | | | | Suggested by scripts/checkpatch.pl.
| * | Make cryptodev_fops const.Miloslav Trmač2010-08-071-1/+1
| | | | | | | | | | | | Suggested by scripts/checkpatch.pl.
| * | Use a struct mutex for session_item_st.mem_mutexMiloslav Trmač2010-08-072-6/+8
| | | | | | | | | | | | Suggested by scripts/checkpatch.pl
* | | Merge branch 'bugfixes'Miloslav Trmač2010-08-0534-4/+38
|\| |
| * | Fix build with recent kernelsJan Chadima2010-08-0534-4/+38
| | |
* | | Merge branch 'replace-lists'Miloslav Trmač2010-08-051-2/+2
|\ \ \
| * | | Change NCR_{KEY,SESSION}_INVALIDMiloslav Trmač2010-08-051-2/+2
| | | | | | | | | | | | | | | | We can allocate ID 0 now. Note that this is an ABI change.
* | | | Merge branch 'bugfixes'Miloslav Trmač2010-08-043-99/+29
|\ \ \ \ | | |/ / | |/| |
| * | | Drop the key generation work queueMiloslav Trmač2010-08-043-99/+29
| | | | | | | | | | | | | | | | | | | | | | | | Originally motivated by debugobject.c reports about using INIT_WORK instead of INIT_WORK_ON_STACK and destroy_work_on_stack. In fact the work queue is completely unnecessary, and this commit removes it.
* | | | Merge branch 'documentation'Miloslav Trmač2010-08-021-0/+554
|\ \ \ \
| * | | | Add man page for /dev/cryptoMiloslav Trmač2010-08-021-0/+554
| | |_|/ | |/| |
* | | | Merge branch 'bugfixes'Miloslav Trmač2010-08-021-1/+2
|\ \ \ \ | | |/ / | |/| |
| * | | Fix error path in ncr_key_generateMiloslav Trmač2010-08-021-1/+2
| | | |
* | | | Merge branch 'replace-lists'Miloslav Trmač2010-07-316-302/+319
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into replace-listsMiloslav Trmač2010-07-3013-123/+172
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr-key.c ncr.c
| * | | Finally remove the unused list_sem_st.Miloslav Trmač2010-07-281-5/+0
| | | |
| * | | Merge branch 'bugfixes' into replace-listsMiloslav Trmač2010-07-282-4/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr.c
| | * | | Drop left-over code for data objectsMiloslav Trmač2010-07-272-4/+0
| | | | |
| * | | | Stop looking in the hash table after the first match.Miloslav Trmač2010-07-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | There should be only one entry anyway. This reduces the average lookup time when there are hash collisions roughly by half.
| * | | | Use hash tables to speed up limit lookupMiloslav Trmač2010-07-281-45/+80
| | | | |
| * | | | Store all types of limits together.Miloslav Trmač2010-07-282-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A process/user that uses one type of crypto primitive is likely to use other types as well. This saves memory and simplifies lookup in the common case.
| * | | | Use <linux/idr.h> for session ID allocation and lookupMiloslav Trmač2010-07-283-69/+52
| | | | |