summaryrefslogtreecommitdiffstats
path: root/cryptodev_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'bugfixes' into nlattrMiloslav Trmač2010-08-251-4/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_main.c examples/ncr.c examples/pk.c ncr-int.h ncr-key-wrap.c ncr-key.c ncr.c ncr.h
| * Provide file_operations::unlocked_ioctl.Miloslav Trmač2010-08-241-5/+4
| | | | | | | | | | | | 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-241-1/+1
| |
* | Add compat_ioctl infrastructureMiloslav Trmač2010-08-241-4/+1
| |
* | Drop unnecessary "file *" argument to ncr_ioctl()Miloslav Trmač2010-08-241-1/+1
| |
* | Drop <cryptodev.h>Miloslav Trmač2010-08-241-809/+16
|/ | | | Also drop implementation of its ioctls, examples, openssl patch.
* Use <linux/uaccess.h> instead of <asm/uaccess.h>Miloslav Trmač2010-08-071-1/+1
| | | | Suggested by scripts/checkpatch.pl.
* Use <linux/ioctl.h> instead of <asm/ioctl.h>Miloslav Trmač2010-08-071-1/+1
| | | | Suggested by scripts/checkpatch.pl.
* Make cryptodev_fops const.Miloslav Trmač2010-08-071-1/+1
| | | | Suggested by scripts/checkpatch.pl.
* Drop the key generation work queueMiloslav Trmač2010-08-041-9/+0
| | | | | | 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.
* relicensed under GNU GPLv2.Nikos Mavrogiannopoulos2010-07-271-8/+9
|
* Don't leak memory on realloc failure.Miloslav Trmač2010-07-261-10/+18
| | | | | This guarantees ses->sg and ses->pages are non-NULL, so drop no longer necessary checks for NULL.
* sparse: Fix __user annotationsMiloslav Trmač2010-07-261-2/+2
|
* Added AES in CTR mode.Nikos Mavrogiannopoulos2010-07-261-0/+3
|
* ncr_int.h -> ncr-int.hNikos Mavrogiannopoulos2010-07-251-1/+1
|
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-9/+2
|
* Revert "initial support for userspace data."Nikos Mavrogiannopoulos2010-07-231-2/+7
| | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
* Fix more incorrect copy_*_user error handlingMiloslav Trmač2010-07-211-5/+10
|
* initial support for userspace data.Nikos Mavrogiannopoulos2010-07-211-7/+2
|
* Backported zero copy /dev/crypto operations from master.Nikos Mavrogiannopoulos2010-07-191-105/+267
|
* sparse: add missing 'static'Miloslav Trmač2010-07-191-4/+4
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Add __init and __exit markersMiloslav Trmač2010-07-191-2/+2
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* sparse: Fix __user annotationsMiloslav Trmač2010-07-191-18/+16
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix copy_{from,to}_user error handlingMiloslav Trmač2010-07-191-28/+40
| | | | | | These functions return a positive number, not an error code, on failure. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Add missing error handling to {get,put}_userMiloslav Trmač2010-07-191-5/+11
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Free data on error its descriptor to user-spaceMiloslav Trmač2010-07-191-2/+12
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Simplify clonefdMiloslav Trmač2010-07-191-2/+0
| | | | | | | get_unused_fd() already sets the right bit in open_fds, no need to do it again (compare e.g. sys_dup()). Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix error paths in crypto_runMiloslav Trmač2010-07-191-3/+3
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Remove a redundant variable assignmentMiloslav Trmač2010-07-191-2/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Public and private keys are being generated in a new workqueue. Some other ↵Nikos Mavrogiannopoulos2010-07-071-1/+9
| | | | fixes and optimizations.
* set_iv() function accepts argument from kernel memory.Nikos Mavrogiannopoulos2010-07-071-3/+8
|
* compat: use compat_ptr() and ptr_to_compat()Phil Sutter2010-06-221-13/+13
|
* Version is shown on module load.Nikos Mavrogiannopoulos2010-06-191-9/+10
|
* Added checking in copy_from_user and copy_to_user.Nikos Mavrogiannopoulos2010-06-171-10/+35
|
* Fixed warnings.Nikos Mavrogiannopoulos2010-06-171-2/+2
|
* Initial attempts to allow wrapping keys with out of band data such as flags, ↵Nikos Mavrogiannopoulos2010-06-171-0/+1
| | | | key ids etc.
* removed calls to gnl. This subsystem no longer exists.Nikos Mavrogiannopoulos2010-06-171-8/+0
|
* Added initial wrapping and unwrapping key API. Adds an implementation of the ↵Nikos Mavrogiannopoulos2010-06-171-2/+22
| | | | AES-WRAP (untested yet).
* Some updates in the server approach (not working yet).Nikos Mavrogiannopoulos2010-06-171-3/+11
|
* Added deinitialization of limits on module unloading. Better cleanup of ↵Nikos Mavrogiannopoulos2010-06-171-0/+3
| | | | unused data.
* Added some initial for of key. Added helper functions to enforce per user ↵Nikos Mavrogiannopoulos2010-06-171-8/+1
| | | | and per process limits.
* Corrected nasty bug and added some debugging info.Nikos Mavrogiannopoulos2010-06-171-3/+0
|
* Added data functionality and a test program.Nikos Mavrogiannopoulos2010-06-171-1/+9
|
* Some updates to compile.Nikos Mavrogiannopoulos2010-06-171-10/+9
|
* Tried to introduce new api.Nikos Mavrogiannopoulos2010-06-171-18/+35
|
* Avoid the use of packed attribute by directly assigning variables.Nikos Mavrogiannopoulos2010-06-171-4/+18
|
* eliminate warnings about unused result of copy_*_userPhil Sutter2010-06-171-24/+24
|
* ioctl_compat: hide code from user, enable conditionallyPhil Sutter2010-06-171-0/+7
|
* crypto_op_to_*: fix typo into the correct directionPhil Sutter2010-06-171-4/+4
| | | | | As these functions only exist to convert from one data structure into the other, their names should stick to the structure names for clarity.
* *_to_compat, compat_to_*: fix different size pointer castingPhil Sutter2010-06-171-12/+12
| | | | | | | | In order to warning-free convert a 32bit integer into a 64bit pointer, casting in two steps is needed: first to adjust the variable size to 64bit, then to actually convert the integer into a pointer. The other direction is easier: after converting the pointer to an integer, assignment to a smaller variable can be done without warning.