Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Backported zero copy /dev/crypto operations from master. | Nikos Mavrogiannopoulos | 2010-07-19 | 3 | -107/+442 | |
| | ||||||
* | Don't recompile cryptodev_main.o all the time | Miloslav Trmač | 2010-07-19 | 1 | -1/+4 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Initialize hash name for NCR_OP_DIGEST | Miloslav Trmač | 2010-07-19 | 1 | -0/+6 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Only set [ch]data->init = 1 on success. | Miloslav Trmač | 2010-07-19 | 1 | -5/+2 | |
| | | | | | | Otherwise other members would be freed twice. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Free all data referenced by a session, in all cases | Miloslav Trmač | 2010-07-19 | 1 | -7/+5 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Report errors from update implied by session_final | Miloslav Trmač | 2010-07-19 | 1 | -3/+9 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Remove unused variables | Miloslav Trmač | 2010-07-19 | 1 | -4/+0 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Refuse non-digest algorithms for pubkey sign/verify operations | Miloslav Trmač | 2010-07-19 | 1 | -0/+5 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Don't access key_item_st after freeing it | Miloslav Trmač | 2010-07-19 | 1 | -2/+2 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | sparse: Fix signedness missmatch (especially in *_export) | Miloslav Trmač | 2010-07-19 | 1 | -1/+1 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | sparse: Make one-bit bit fields explicitly unsigned | Miloslav Trmač | 2010-07-19 | 1 | -6/+6 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Represent ENOKEY as a negative value | Miloslav Trmač | 2010-07-19 | 1 | -2/+2 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | sparse: Avoid variable-length arrays | Miloslav Trmač | 2010-07-19 | 1 | -4/+21 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | sparse: add missing 'static' | Miloslav Trmač | 2010-07-19 | 3 | -12/+12 | |
| | | | | 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 | 5 | -50/+52 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Fix copy_{from,to}_user error handling | Miloslav Trmač | 2010-07-19 | 6 | -98/+98 | |
| | | | | | | 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 | 4 | -13/+53 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Fix error paths in ncr_key_storage_wrap | Miloslav Trmač | 2010-07-19 | 1 | -1/+2 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Fix error paths in ncr_key_wrap | Miloslav Trmač | 2010-07-19 | 1 | -1/+2 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | On async request error report the request error | Miloslav Trmač | 2010-07-19 | 1 | -1/+1 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Avoid overflows when unwrapping from storage | Miloslav Trmač | 2010-07-19 | 1 | -1/+5 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Use the supplied pid even if creating a new record | Miloslav Trmač | 2010-07-19 | 1 | -1/+1 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Fix error paths in ncr_key_init | Miloslav Trmač | 2010-07-19 | 1 | -1/+6 | |
| | | | | 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> | |||||
* | Fix cryptodev_hash_deinit | Miloslav Trmač | 2010-07-19 | 1 | -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_init | Miloslav Trmač | 2010-07-19 | 1 | -0/+1 | |
| | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> | |||||
* | Fix cipher_data deinitialization. | Miloslav Trmač | 2010-07-19 | 1 | -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-19 | 1 | -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-19 | 1 | -0/+4 | |
| | ||||||
* | Fix error paths in ncr_data_init | Miloslav Trmač | 2010-07-19 | 1 | -6/+13 | |
| | ||||||
* | Fix error paths in ncr_limits_add_and_check | Miloslav Trmač | 2010-07-19 | 1 | -2/+17 | |
| | ||||||
* | Reduce stack usage. | Nikos Mavrogiannopoulos | 2010-07-14 | 1 | -1/+2 | |
| | ||||||
* | use mp_int* instead of void* | Nikos Mavrogiannopoulos | 2010-07-14 | 2 | -4/+4 | |
| | ||||||
* | Corrected RSA signature generation/verification. | Nikos Mavrogiannopoulos | 2010-07-14 | 6 | -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 Mavrogiannopoulos | 2010-07-14 | 2 | -19/+24 | |
| | | | | and gnutls. | |||||
* | OP_MAC was deprecated by OP_SIGN. | Nikos Mavrogiannopoulos | 2010-07-14 | 1 | -5/+5 | |
| | ||||||
* | Separated PK operations. | Nikos Mavrogiannopoulos | 2010-07-14 | 2 | -43/+49 | |
| | ||||||
* | Added signature generation and verification. | Nikos Mavrogiannopoulos | 2010-07-12 | 6 | -82/+439 | |
| | ||||||
* | Initial additions to have PK encryption/decryption. Separated operations | Nikos Mavrogiannopoulos | 2010-07-12 | 10 | -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 Mavrogiannopoulos | 2010-07-12 | 1 | -1/+1 | |
| | ||||||
* | Allow import and export of keys. | Nikos Mavrogiannopoulos | 2010-07-12 | 4 | -12/+60 | |
| | ||||||
* | Removed the public key params get/set functionality. This can be achieved ↵ | Nikos Mavrogiannopoulos | 2010-07-12 | 2 | -89/+0 | |
| | | | | with import/export functionality and DER decoding. | |||||
* | Several fixes. RSA key generation tested and works. | Nikos Mavrogiannopoulos | 2010-07-07 | 9 | -61/+100 | |
| | ||||||
* | additions to compile on 32-bit machines. | Nikos Mavrogiannopoulos | 2010-07-07 | 1 | -2/+7 | |
| | ||||||
* | Added test program for key generation. | Nikos Mavrogiannopoulos | 2010-07-07 | 1 | -0/+345 | |
| | ||||||
* | Public and private keys are being generated in a new workqueue. Some other ↵ | Nikos Mavrogiannopoulos | 2010-07-07 | 11 | -57/+144 | |
| | | | | fixes and optimizations. |