Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Use hash tables to speed up limit lookup | Miloslav Trmač | 2010-08-08 | 1 | -45/+80 | |
| | | | ||||||
| * | | Store all types of limits together. | Miloslav Trmač | 2010-08-08 | 2 | -18/+25 | |
| | | | | | | | | | | | | | | | | | | A process/user that uses one type of crypto primitive is likely to use other types as well. This saves memory and simplifies lookup in the common case. | |||||
| * | | Use <linux/idr.h> for session ID allocation and lookup | Miloslav Trmač | 2010-08-08 | 3 | -69/+52 | |
| | | | ||||||
| * | | Use <linux/idr.h> for key ID allocation and lookup | Miloslav Trmač | 2010-08-08 | 3 | -110/+88 | |
| | | | ||||||
| * | | Change NCR_{KEY,SESSION}_INVALID | Miloslav Trmač | 2010-08-08 | 1 | -2/+2 | |
| | | | | | | | | | | | | We will be able allocate ID 0. Note that this is an ABI change. | |||||
| * | | Use ncr_lists instead of list_sem_st in intefaces | Miloslav Trmač | 2010-08-08 | 5 | -92/+105 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-08 | 0 | -0/+0 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Ensure sign_hash is valid in RSA sign/verify | Miloslav Trmač | 2010-08-08 | 1 | -0/+8 | |
| | | | ||||||
* | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-08 | 7 | -48/+54 | |
|\| | | ||||||
| * | | Use types from <linux/types.h> for public headers. | Miloslav Trmač | 2010-08-08 | 7 | -48/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When included in the kernel tree, <inttypes.h> is not available, so <linux/types.h> has to be used. <linux/types.h> does not provide the uintNN_t and size_t types when installed to /usr/include/linux (package kernel-headers on Fedora). Therefore, use the types from <linux/types.h> that are available in userspace. Also fix user-space users of the headers not to assume that they provide the <stdint.h> types. | |||||
* | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-07 | 10 | -23/+24 | |
|\| | | | | | | | | | | | | | | Conflicts: ncr-int.h | |||||
| * | | Use <linux/uaccess.h> instead of <asm/uaccess.h> | Miloslav Trmač | 2010-08-07 | 8 | -8/+8 | |
| | | | | | | | | | | | | Suggested by scripts/checkpatch.pl. | |||||
| * | | Use <linux/ioctl.h> instead of <asm/ioctl.h> | Miloslav Trmač | 2010-08-07 | 8 | -8/+8 | |
| | | | | | | | | | | | | Suggested by scripts/checkpatch.pl. | |||||
| * | | Make cryptodev_fops const. | Miloslav Trmač | 2010-08-07 | 1 | -1/+1 | |
| | | | | | | | | | | | | Suggested by scripts/checkpatch.pl. | |||||
| * | | Use a struct mutex for session_item_st.mem_mutex | Miloslav Trmač | 2010-08-07 | 2 | -6/+8 | |
| | | | | | | | | | | | | Suggested by scripts/checkpatch.pl | |||||
* | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-05 | 34 | -4/+38 | |
|\| | | ||||||
| * | | Fix build with recent kernels | Jan Chadima | 2010-08-05 | 34 | -4/+38 | |
| | | | ||||||
* | | | Merge branch 'replace-lists' | Miloslav Trmač | 2010-08-05 | 1 | -2/+2 | |
|\ \ \ | ||||||
| * | | | Change NCR_{KEY,SESSION}_INVALID | Miloslav Trmač | 2010-08-05 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | We can allocate ID 0 now. Note that this is an ABI change. | |||||
* | | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-04 | 3 | -99/+29 | |
|\ \ \ \ | | |/ / | |/| | | ||||||
| * | | | Drop the key generation work queue | Miloslav Trmač | 2010-08-04 | 3 | -99/+29 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | | Merge branch 'documentation' | Miloslav Trmač | 2010-08-02 | 1 | -0/+554 | |
|\ \ \ \ | ||||||
| * | | | | Add man page for /dev/crypto | Miloslav Trmač | 2010-08-02 | 1 | -0/+554 | |
| | |_|/ | |/| | | ||||||
* | | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-08-02 | 1 | -1/+2 | |
|\ \ \ \ | | |/ / | |/| | | ||||||
| * | | | Fix error path in ncr_key_generate | Miloslav Trmač | 2010-08-02 | 1 | -1/+2 | |
| | | | | ||||||
* | | | | Merge branch 'replace-lists' | Miloslav Trmač | 2010-07-31 | 6 | -302/+319 | |
|\ \ \ \ | | |_|/ | |/| | | ||||||
| * | | | Merge branch 'master' into replace-lists | Miloslav Trmač | 2010-07-30 | 13 | -123/+172 | |
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr-key.c ncr.c | |||||
| * | | | Finally remove the unused list_sem_st. | Miloslav Trmač | 2010-07-28 | 1 | -5/+0 | |
| | | | | ||||||
| * | | | Merge branch 'bugfixes' into replace-lists | Miloslav Trmač | 2010-07-28 | 2 | -4/+0 | |
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr.c | |||||
| | * | | | Drop left-over code for data objects | Miloslav Trmač | 2010-07-27 | 2 | -4/+0 | |
| | | | | | ||||||
| * | | | | Stop looking in the hash table after the first match. | Miloslav Trmač | 2010-07-28 | 1 | -1/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | There should be only one entry anyway. This reduces the average lookup time when there are hash collisions roughly by half. | |||||
| * | | | | Use hash tables to speed up limit lookup | Miloslav Trmač | 2010-07-28 | 1 | -45/+80 | |
| | | | | | ||||||
| * | | | | Store all types of limits together. | Miloslav Trmač | 2010-07-28 | 2 | -18/+25 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A process/user that uses one type of crypto primitive is likely to use other types as well. This saves memory and simplifies lookup in the common case. | |||||
| * | | | | Use <linux/idr.h> for session ID allocation and lookup | Miloslav Trmač | 2010-07-28 | 3 | -69/+52 | |
| | | | | | ||||||
| * | | | | Use <linux/idr.h> for key ID allocation and lookup | Miloslav Trmač | 2010-07-28 | 3 | -110/+88 | |
| | | | | | ||||||
| * | | | | Use ncr_lists instead of list_sem_st in intefaces | Miloslav Trmač | 2010-07-27 | 5 | -93/+106 | |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | | Merge branch 'bugfixes' | Miloslav Trmač | 2010-07-31 | 1 | -1/+1 | |
|\ \ \ \ | | |_|/ | |/| | | ||||||
| * | | | Fix error path in unwrap_aes | Miloslav Trmač | 2010-07-30 | 1 | -1/+1 | |
| | |/ | |/| | ||||||
* | | | Merge branch 'algorithm-speedup' | Miloslav Trmač | 2010-07-31 | 1 | -0/+8 | |
|\ \ \ | |/ / |/| | | ||||||
| * | | Merge branch 'master' into algorithm-speedup | Miloslav Trmač | 2010-07-26 | 32 | -1572/+1258 | |
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c libtomcrypt/pk/rsa/rsa_decrypt_key.c libtomcrypt/pk/rsa/rsa_encrypt_key.c libtomcrypt/pk/rsa/rsa_sign_hash.c libtomcrypt/pk/rsa/rsa_verify_hash.c ncr-int.h ncr-key.c ncr-pk.c ncr-sessions.c | |||||
| * | | | Only look up the sign_hash algorithm once | Miloslav Trmač | 2010-07-24 | 3 | -9/+5 | |
| | | | | ||||||
| * | | | Replace _ncr_algo_to_str by direct accesses | Miloslav Trmač | 2010-07-24 | 4 | -30/+10 | |
| | | | | ||||||
| * | | | Replace _ncr_algo_digest_size by direct accesses | Miloslav Trmač | 2010-07-24 | 9 | -30/+11 | |
| | | | | ||||||
| * | | | Use algo_properties_st in hash_is_valid | Miloslav Trmač | 2010-07-24 | 13 | -14/+14 | |
| | | | | ||||||
| * | | | Use algo_properties_st in hash_memory_multi | Miloslav Trmač | 2010-07-24 | 5 | -9/+9 | |
| | | | | ||||||
| * | | | Use algo_properties_st in hash_memory | Miloslav Trmač | 2010-07-24 | 5 | -11/+11 | |
| | | | | ||||||
| * | | | Use algo_properties_st in pkcs_1_mgf1 | Miloslav Trmač | 2010-07-24 | 6 | -12/+12 | |
| | | | | ||||||
| * | | | Use algo_properties_st in pkcs_1_pss_decode | Miloslav Trmač | 2010-07-24 | 3 | -8/+8 | |
| | | | | ||||||
| * | | | Use algo_properties_st in pkcs_1_oaep_decode | Miloslav Trmač | 2010-07-24 | 3 | -10/+10 | |
| | | | | ||||||
| * | | | Use algo_properties_st in pkcs_1_pss_encode | Miloslav Trmač | 2010-07-24 | 3 | -8/+8 | |
| | | | |