summaryrefslogtreecommitdiffstats
path: root/ncr.c
Commit message (Collapse)AuthorAgeFilesLines
* run scripts/Lindent.Nikos Mavrogiannopoulos2010-09-061-86/+99
|
* Merge branch 'bugfixes' into nlattrMiloslav Trmač2010-08-251-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_main.c examples/ncr.c examples/pk.c ncr-int.h ncr-key-wrap.c ncr-key.c ncr.c ncr.h
| * Base access decisions only on capable(), not euidMiloslav Trmač2010-08-241-1/+1
| |
| * Provide file_operations::unlocked_ioctl.Miloslav Trmač2010-08-241-1/+1
| | | | | | | | | | | | 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-2/+1
| |
* | Convert *_MASTER_KEY_SETMiloslav Trmač2010-08-241-19/+34
| |
* | Convert *_SESSION_*Miloslav Trmač2010-08-241-10/+107
| |
* | Convert *_KEY_STORAGE_UNWRAPMiloslav Trmač2010-08-241-2/+22
| |
* | Convert *_KEY_STORAGE_WRAPMiloslav Trmač2010-08-241-2/+22
| |
* | Convert *_KEY_UNWRAPMiloslav Trmač2010-08-241-2/+21
| |
* | Convert *_KEY_WRAPMiloslav Trmač2010-08-241-2/+21
| |
* | Convert *_KEY_DEINITMiloslav Trmač2010-08-241-2/+11
| |
* | Convert *_KEY_IMPORTMiloslav Trmač2010-08-241-2/+19
| |
* | Convert *_KEY_EXPORTMiloslav Trmač2010-08-241-2/+43
| |
* | Convert *_KEY_GET_INFOMiloslav Trmač2010-08-241-2/+19
| |
* | Convert *_KEY_DERIVEMiloslav Trmač2010-08-241-2/+2
| |
* | Convert *_KEY_GENERATE_PAIRMiloslav Trmač2010-08-241-2/+3
| |
* | Convert *_KEY_GENERATEMiloslav Trmač2010-08-241-2/+22
| |
* | Convert *_KEY_INITMiloslav Trmač2010-08-241-2/+4
| |
* | Add compat_ioctl infrastructureMiloslav Trmač2010-08-241-0/+15
| |
* | Drop unnecessary "file *" argument to ncr_ioctl()Miloslav Trmač2010-08-241-2/+1
| |
* | Drop <cryptodev.h>Miloslav Trmač2010-08-241-1/+0
|/ | | | Also drop implementation of its ioctls, examples, openssl patch.
* Merge branch 'bugfixes'Miloslav Trmač2010-08-071-2/+2
|\ | | | | | | | | Conflicts: ncr-int.h
| * 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.
* | Merge branch 'master' into replace-listsMiloslav Trmač2010-07-301-2/+5
|\| | | | | | | | | | | | | Conflicts: ncr-int.h ncr-key.c ncr.c
| * NCR_CIPHER_MAX_KEY_LEN no longer exist in userspace API.Nikos Mavrogiannopoulos2010-07-281-2/+5
| |
| * Drop left-over code for data objectsMiloslav Trmač2010-07-281-3/+0
| |
* | Merge branch 'bugfixes' into replace-listsMiloslav Trmač2010-07-281-3/+0
|\ \ | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr.c
| * | Drop left-over code for data objectsMiloslav Trmač2010-07-271-3/+0
| |/
* | Use <linux/idr.h> for session ID allocation and lookupMiloslav Trmač2010-07-281-2/+2
| |
* | Use <linux/idr.h> for key ID allocation and lookupMiloslav Trmač2010-07-281-2/+2
| |
* | Use ncr_lists instead of list_sem_st in intefacesMiloslav Trmač2010-07-271-14/+14
|/ | | | | | | | | | | | | | 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.
* Implemented Diffie Hellman Key exchange.Nikos Mavrogiannopoulos2010-07-271-3/+1
|
* Corrected copyright notices.Nikos Mavrogiannopoulos2010-07-271-2/+4
|
* relicensed under GNU GPLv2.Nikos Mavrogiannopoulos2010-07-271-8/+9
|
* removed the data type.Nikos Mavrogiannopoulos2010-07-261-12/+2
|
* ncr_int.h -> ncr-int.hNikos Mavrogiannopoulos2010-07-251-1/+1
|
* Key wrapping operates directly to userspace data. No need to involve the ↵Nikos Mavrogiannopoulos2010-07-251-4/+4
| | | | data_t structures.
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-0/+1
|
* Use of algo_properties to avoid linear search on a table for each property.Miloslav Trmač2010-07-241-28/+0
|
* Revert "Modified NCR-USER API to "simplify" and allow setting of size of ↵Nikos Mavrogiannopoulos2010-07-231-2/+0
| | | | | | data structure without special system call." This reverts commit 5689c9734223fb349bba526d620823a803c3b67e.
* Modified NCR-USER API to "simplify" and allow setting of size of data ↵Nikos Mavrogiannopoulos2010-07-211-0/+2
| | | | structure without special system call.
* sparse: Fix __user annotationsMiloslav Trmač2010-07-191-23/+24
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix copy_{from,to}_user error handlingMiloslav Trmač2010-07-191-4/+2
| | | | | | These functions return a positive number, not an error code, on failure. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Removed the public key params get/set functionality. This can be achieved ↵Nikos Mavrogiannopoulos2010-07-121-8/+0
| | | | with import/export functionality and DER decoding.
* Public and private keys are being generated in a new workqueue. Some other ↵Nikos Mavrogiannopoulos2010-07-071-1/+2
| | | | fixes and optimizations.
* Added checking in copy_from_user and copy_to_user.Nikos Mavrogiannopoulos2010-06-171-1/+6
|
* Be more strict when loading master key.Nikos Mavrogiannopoulos2010-06-171-0/+7
|
* Use current_euid() and task_pid_nr(current) to get identifiers for owners ↵Nikos Mavrogiannopoulos2010-06-171-2/+14
| | | | (for imposed limits).