Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'bugfixes' into nlattr | Miloslav Trmač | 2010-08-25 | 1 | -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-24 | 1 | -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-24 | 1 | -1/+1 |
| | | |||||
* | | Add compat_ioctl infrastructure | Miloslav Trmač | 2010-08-24 | 1 | -4/+1 |
| | | |||||
* | | Drop unnecessary "file *" argument to ncr_ioctl() | Miloslav Trmač | 2010-08-24 | 1 | -1/+1 |
| | | |||||
* | | Drop <cryptodev.h> | Miloslav Trmač | 2010-08-24 | 1 | -809/+16 |
|/ | | | | Also drop implementation of its ioctls, examples, openssl patch. | ||||
* | Use <linux/uaccess.h> instead of <asm/uaccess.h> | Miloslav Trmač | 2010-08-07 | 1 | -1/+1 |
| | | | | Suggested by scripts/checkpatch.pl. | ||||
* | Use <linux/ioctl.h> instead of <asm/ioctl.h> | Miloslav Trmač | 2010-08-07 | 1 | -1/+1 |
| | | | | Suggested by scripts/checkpatch.pl. | ||||
* | Make cryptodev_fops const. | Miloslav Trmač | 2010-08-07 | 1 | -1/+1 |
| | | | | Suggested by scripts/checkpatch.pl. | ||||
* | Drop the key generation work queue | Miloslav Trmač | 2010-08-04 | 1 | -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 Mavrogiannopoulos | 2010-07-27 | 1 | -8/+9 |
| | |||||
* | Don't leak memory on realloc failure. | Miloslav Trmač | 2010-07-26 | 1 | -10/+18 |
| | | | | | This guarantees ses->sg and ses->pages are non-NULL, so drop no longer necessary checks for NULL. | ||||
* | sparse: Fix __user annotations | Miloslav Trmač | 2010-07-26 | 1 | -2/+2 |
| | |||||
* | Added AES in CTR mode. | Nikos Mavrogiannopoulos | 2010-07-26 | 1 | -0/+3 |
| | |||||
* | ncr_int.h -> ncr-int.h | Nikos Mavrogiannopoulos | 2010-07-25 | 1 | -1/+1 |
| | |||||
* | Added a support for reading session data directly from userspace. | Nikos Mavrogiannopoulos | 2010-07-24 | 1 | -9/+2 |
| | |||||
* | Revert "initial support for userspace data." | Nikos Mavrogiannopoulos | 2010-07-23 | 1 | -2/+7 |
| | | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16. | ||||
* | Fix more incorrect copy_*_user error handling | Miloslav Trmač | 2010-07-21 | 1 | -5/+10 |
| | |||||
* | initial support for userspace data. | Nikos Mavrogiannopoulos | 2010-07-21 | 1 | -7/+2 |
| | |||||
* | Backported zero copy /dev/crypto operations from master. | Nikos Mavrogiannopoulos | 2010-07-19 | 1 | -105/+267 |
| | |||||
* | sparse: add missing 'static' | Miloslav Trmač | 2010-07-19 | 1 | -4/+4 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Add __init and __exit markers | Miloslav Trmač | 2010-07-19 | 1 | -2/+2 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | sparse: Fix __user annotations | Miloslav Trmač | 2010-07-19 | 1 | -18/+16 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Fix copy_{from,to}_user error handling | Miloslav Trmač | 2010-07-19 | 1 | -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}_user | Miloslav Trmač | 2010-07-19 | 1 | -5/+11 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Free data on error its descriptor to user-space | Miloslav Trmač | 2010-07-19 | 1 | -2/+12 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Simplify clonefd | Miloslav Trmač | 2010-07-19 | 1 | -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_run | Miloslav Trmač | 2010-07-19 | 1 | -3/+3 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Remove a redundant variable assignment | Miloslav Trmač | 2010-07-19 | 1 | -2/+0 |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||||
* | Public and private keys are being generated in a new workqueue. Some other ↵ | Nikos Mavrogiannopoulos | 2010-07-07 | 1 | -1/+9 |
| | | | | fixes and optimizations. | ||||
* | set_iv() function accepts argument from kernel memory. | Nikos Mavrogiannopoulos | 2010-07-07 | 1 | -3/+8 |
| | |||||
* | compat: use compat_ptr() and ptr_to_compat() | Phil Sutter | 2010-06-22 | 1 | -13/+13 |
| | |||||
* | Version is shown on module load. | Nikos Mavrogiannopoulos | 2010-06-19 | 1 | -9/+10 |
| | |||||
* | Added checking in copy_from_user and copy_to_user. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -10/+35 |
| | |||||
* | Fixed warnings. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -2/+2 |
| | |||||
* | Initial attempts to allow wrapping keys with out of band data such as flags, ↵ | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -0/+1 |
| | | | | key ids etc. | ||||
* | removed calls to gnl. This subsystem no longer exists. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -8/+0 |
| | |||||
* | Added initial wrapping and unwrapping key API. Adds an implementation of the ↵ | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -2/+22 |
| | | | | AES-WRAP (untested yet). | ||||
* | Some updates in the server approach (not working yet). | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -3/+11 |
| | |||||
* | Added deinitialization of limits on module unloading. Better cleanup of ↵ | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -0/+3 |
| | | | | unused data. | ||||
* | Added some initial for of key. Added helper functions to enforce per user ↵ | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -8/+1 |
| | | | | and per process limits. | ||||
* | Corrected nasty bug and added some debugging info. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -3/+0 |
| | |||||
* | Added data functionality and a test program. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -1/+9 |
| | |||||
* | Some updates to compile. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -10/+9 |
| | |||||
* | Tried to introduce new api. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -18/+35 |
| | |||||
* | Avoid the use of packed attribute by directly assigning variables. | Nikos Mavrogiannopoulos | 2010-06-17 | 1 | -4/+18 |
| | |||||
* | eliminate warnings about unused result of copy_*_user | Phil Sutter | 2010-06-17 | 1 | -24/+24 |
| | |||||
* | ioctl_compat: hide code from user, enable conditionally | Phil Sutter | 2010-06-17 | 1 | -0/+7 |
| | |||||
* | crypto_op_to_*: fix typo into the correct direction | Phil Sutter | 2010-06-17 | 1 | -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 casting | Phil Sutter | 2010-06-17 | 1 | -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. |