summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* 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.
* Fix a race in ncr_data_set.Miloslav Trmač2010-07-191-3/+6
| | | | | | | | | | | More than one thread could could pass the if (... > max_data_size) test, leading to multiple executions of "data->data_size += get.data_size", resulting in data->data_size > data->max_data_size. This is a minimal fix that ensures kernel data structure consistency, but the behavior won't look atomic from user space (two threads appending N and M bytes could result in N, M, or N+M more bytes). It relies on the assumption that reads and writes of size_t are atomic.
* Describe why there is no integer overflow.Miloslav Trmač2010-07-191-0/+4
|
* Fix error paths in ncr_data_initMiloslav Trmač2010-07-191-6/+13
|
* Fix error paths in ncr_limits_add_and_checkMiloslav Trmač2010-07-191-2/+17
|
* Reduce stack usage.Nikos Mavrogiannopoulos2010-07-141-1/+2
|
* use mp_int* instead of void*Nikos Mavrogiannopoulos2010-07-142-4/+4
|
* Corrected RSA signature generation/verification.Nikos Mavrogiannopoulos2010-07-146-48/+352
| | | | Added Test for RSA and DSA signature generation and verification.
* DSA private keys are exported to a format that is compatible with openssl ↵Nikos Mavrogiannopoulos2010-07-142-19/+24
| | | | and gnutls.
* OP_MAC was deprecated by OP_SIGN.Nikos Mavrogiannopoulos2010-07-141-5/+5
|
* Separated PK operations.Nikos Mavrogiannopoulos2010-07-142-43/+49
|
* Added signature generation and verification.Nikos Mavrogiannopoulos2010-07-126-82/+439
|
* Initial additions to have PK encryption/decryption. Separated operationsNikos Mavrogiannopoulos2010-07-1210-128/+343
| | | | | on keys to read/write to prevent overwriting a key while using it. Several other cleanups.
* Allow import and export of keys.Nikos Mavrogiannopoulos2010-07-121-1/+1
|
* Allow import and export of keys.Nikos Mavrogiannopoulos2010-07-124-12/+60
|
* Removed the public key params get/set functionality. This can be achieved ↵Nikos Mavrogiannopoulos2010-07-122-89/+0
| | | | with import/export functionality and DER decoding.
* Several fixes. RSA key generation tested and works.Nikos Mavrogiannopoulos2010-07-079-61/+100
|
* additions to compile on 32-bit machines.Nikos Mavrogiannopoulos2010-07-071-2/+7
|
* Added test program for key generation.Nikos Mavrogiannopoulos2010-07-071-0/+345
|
* Public and private keys are being generated in a new workqueue. Some other ↵Nikos Mavrogiannopoulos2010-07-0711-57/+144
| | | | fixes and optimizations.
* Corrected permissions.Nikos Mavrogiannopoulos2010-07-072-0/+0
|
* Added ability to generate DSA and RSA keys and store them.Nikos Mavrogiannopoulos2010-07-076-26/+309
|
* Added a modified libtomcrypt with DSA and RSA algorithms.Nikos Mavrogiannopoulos2010-07-0766-6036/+586
|
* set_iv() function accepts argument from kernel memory.Nikos Mavrogiannopoulos2010-07-073-6/+11
|
* Added libtomcryptNikos Mavrogiannopoulos2010-07-06112-3/+15187
|
* exported _ncr_algo_to_str and _ncr_algo_digest_sizeNikos Mavrogiannopoulos2010-07-062-4/+7
|
* Added libtommath for bignum operations.Nikos Mavrogiannopoulos2010-07-05124-2/+11044
|
* compat: use compat_ptr() and ptr_to_compat()Phil Sutter2010-06-221-13/+13
|
* Version is shown on module load.Nikos Mavrogiannopoulos2010-06-192-12/+14
|
* Documented stuff about the newapi.Nikos Mavrogiannopoulos2010-06-191-4/+15
|
* Added missing makefile.Nikos Mavrogiannopoulos2010-06-181-0/+9
|
* Use compat_uptr_t to identify pointers in compat_ioctl structures..Nikos Mavrogiannopoulos2010-06-181-6/+7
|
* Several fixes related to checks with copy_from/to_user.Nikos Mavrogiannopoulos2010-06-174-5/+11
|
* Added checking in copy_from_user and copy_to_user.Nikos Mavrogiannopoulos2010-06-176-88/+221
|
* Fixed warnings.Nikos Mavrogiannopoulos2010-06-171-2/+2
|
* Fixed key storage wrapping.Nikos Mavrogiannopoulos2010-06-173-32/+186
|
* Be more strict when loading master key.Nikos Mavrogiannopoulos2010-06-172-3/+26
|
* Corrected hash algorithms initialization. Test vectors pass.Nikos Mavrogiannopoulos2010-06-171-4/+23
|
* Use current_euid() and task_pid_nr(current) to get identifiers for owners ↵Nikos Mavrogiannopoulos2010-06-176-42/+107
| | | | (for imposed limits).
* Added rfc5649 key wrapping (untested).Nikos Mavrogiannopoulos2010-06-174-72/+332
|
* Initial attempts to allow wrapping keys with out of band data such as flags, ↵Nikos Mavrogiannopoulos2010-06-176-11/+212
| | | | key ids etc.
* Added vectors for SHA2 variants.Nikos Mavrogiannopoulos2010-06-171-1/+42
|
* corrected the digest size of SHA224.Nikos Mavrogiannopoulos2010-06-171-1/+1
|
* Added test functionality for HMAC and hashes (SHA-1, MD5)Nikos Mavrogiannopoulos2010-06-171-2/+174
|
* Wrapping/Unwrapping works and tested.Nikos Mavrogiannopoulos2010-06-172-23/+137
|