summaryrefslogtreecommitdiffstats
path: root/cryptodev_cipher.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* More copyright fixes.Nikos Mavrogiannopoulos2010-07-271-0/+2
|
* relicensed under GNU GPLv2.Nikos Mavrogiannopoulos2010-07-271-8/+9
|
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-4/+4
|
* Fix error handling in cryptodev_hash_initMiloslav Trmač2010-07-211-1/+3
|
* hash_reset() was combined with hash_init() to avoid requiring two calls for ↵Nikos Mavrogiannopoulos2010-07-191-0/+7
| | | | hash initialization.
* Only set [ch]data->init = 1 on success.Miloslav Trmač2010-07-191-5/+2
| | | | | | Otherwise other members would be freed twice. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* sparse: Fix __user annotationsMiloslav Trmač2010-07-191-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* On async request error report the request errorMiloslav Trmač2010-07-191-1/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix cryptodev_hash_deinitMiloslav Trmač2010-07-191-1/+5
| | | | | This function may be called even if hdata was never initialized, so only free the crypto API data structures if they are not NULL.
* Fix error paths in cryptodev_hash_initMiloslav Trmač2010-07-191-0/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix cipher_data deinitialization.Miloslav Trmač2010-07-191-4/+8
| | | | | | | | | Guard crypto API *free* with "if (ptr)"; it works without the guards, but that seems to be an implementation detail - at least in the case of crypto_ablkcipher. Free them in the opposite order of allocation, async.request points to async.result and async.s.
* Added signature generation and verification.Nikos Mavrogiannopoulos2010-07-121-6/+10
|
* set_iv() function accepts argument from kernel memory.Nikos Mavrogiannopoulos2010-07-071-2/+2
|
* corrected decryptionNikos Mavrogiannopoulos2010-06-171-1/+1
|
* Added generic sessions to allow encryption/decryption hash and HMAC.Nikos Mavrogiannopoulos2010-06-171-0/+32
| | | | Removed the ncr-cipher.c.
* Added initial wrapping and unwrapping key API. Adds an implementation of the ↵Nikos Mavrogiannopoulos2010-06-171-26/+4
| | | | AES-WRAP (untested yet).
* eliminate warnings about unused result of copy_*_userPhil Sutter2010-06-171-4/+10
|
* whitespace cleanupPhil Sutter2010-06-161-13/+13
|
* If alg->max_keysize==0, allow any key size.Nikos Mavrogiannopoulos2010-06-151-1/+1
|
* Use unlikely() on unlikely situations.Nikos Mavrogiannopoulos2010-03-031-12/+12
|
* cryptodev initialises its sg with sg_set_buf. Although I'm notMichael Weiser2010-02-261-1/+5
| | | | | | | | | sure, what the repercussions are, I changed it to sg_init_one with no ill effects. Added comment for wait_for_completion(). Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Corrected usage of wait_for_completionNikos Mavrogiannopoulos2010-02-201-5/+1
|
* Use wait_for_completion instead of wait_for_completion_interruptible sinceNikos Mavrogiannopoulos2010-02-201-2/+1
| | | | we cannot restart the system call so far.
* Use only async API since it is a superset of the synchronous one.Nikos Mavrogiannopoulos2010-02-201-256/+123
| | | | Cleanup in structures.
* Switched type with __user.Nikos Mavrogiannopoulos2010-02-191-3/+3
|
* Reintroduced dprintk() everywhere.Nikos Mavrogiannopoulos2010-02-191-17/+23
|
* Corrected bug in IV setting for ciphers.Nikos Mavrogiannopoulos2010-02-191-5/+9
|
* Added async hash support.Nikos Mavrogiannopoulos2010-02-191-0/+426