Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | | 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 | |
| | | | | ||||||
| * | | | Use algo_properties_st in pkcs_1_oaep_encode | Miloslav Trmač | 2010-07-24 | 3 | -11/+13 | |
| | | | | ||||||
| * | | | Use algo_properties_st in hash_get_oid | Miloslav Trmač | 2010-07-24 | 4 | -5/+7 | |
| | | | | ||||||
| * | | | Replace algo_can_*, algo_needs_iv with direct accesses | Miloslav Trmač | 2010-07-24 | 1 | -62/+5 | |
| | | | | ||||||
| * | | | Use algo_properties_st in rsa_verify_hash_ex | Miloslav Trmač | 2010-07-24 | 3 | -9/+10 | |
| | | | | ||||||
| * | | | Use algo_properties_st in rsa_sign_hash_ex | Miloslav Trmač | 2010-07-24 | 3 | -9/+10 | |
| | | | | ||||||
| * | | | Use algo_properties_st in rsa_decrypt_key_ex | Miloslav Trmač | 2010-07-24 | 3 | -8/+9 | |
| | | | | ||||||
| * | | | Use algo_properties_st in rsa_encrypt_key_ex | Miloslav Trmač | 2010-07-24 | 3 | -8/+11 | |
| | | | | ||||||
| * | | | Use algo_properties_st in ncr_key_params_get_sign_hash | Miloslav Trmač | 2010-07-24 | 3 | -19/+20 | |
| | | | | ||||||
| * | | | Use algo_properties_st in ncr_pk_generate | Miloslav Trmač | 2010-07-24 | 3 | -7/+6 | |
| | | | | ||||||
| * | | | Use algo_properties_st in ncr_pk_ctx.oaep_hash | Miloslav Trmač | 2010-07-24 | 2 | -6/+10 | |
| | | | | ||||||
| * | | | Use algo_properties_st in ncr_pk_ctx.sign_hash | Miloslav Trmač | 2010-07-24 | 2 | -4/+12 | |
| | | | | ||||||
| * | | | Use algo_properties_st in ncr_pk_ctx.algorithm | Miloslav Trmač | 2010-07-24 | 3 | -12/+12 | |
| | | | | ||||||
| * | | | Replace ncr_algoritm_to_key_type by a struct member | Miloslav Trmač | 2010-07-24 | 4 | -55/+50 | |
| | | | | | | | | | | | | | | | | Also handle some algorithms missing in the function. | |||||
| * | | | Use algo_properties_st in ncr_algorithm_to_key_type | Miloslav Trmač | 2010-07-24 | 3 | -6/+12 | |
| | | | | | | | | | | | | | | | | An intermediary patch, the function will be removed in next commit. | |||||
| * | | | Use algo_properties_st in key_item_st | Miloslav Trmač | 2010-07-24 | 5 | -15/+34 | |
| | | | | ||||||
| * | | | Use algo_properties_st in session_item_st | Miloslav Trmač | 2010-07-24 | 2 | -37/+27 | |
| | | | | | | | | | | | | | | | | Drop no longer necessary lookup functions. | |||||
| * | | | Rename algo_properties_st members for better readability | Miloslav Trmač | 2010-07-24 | 2 | -19/+19 | |
| | | | | ||||||
| * | | | Make algo_properties_st public inside the module | Miloslav Trmač | 2010-07-24 | 2 | -11/+13 | |
| | | | | ||||||
* | | | | just noticed that the DSA generation algorithm is not the nist one. | Nikos Mavrogiannopoulos | 2010-07-29 | 1 | -0/+1 | |
| | | | | ||||||
* | | | | put correct license. | Nikos Mavrogiannopoulos | 2010-07-29 | 2 | -10/+38 | |
| | | | | ||||||
* | | | | updated README. | Nikos Mavrogiannopoulos | 2010-07-29 | 2 | -4/+14 | |
| | | | | ||||||
* | | | | small change in AUTHORS. | Nikos Mavrogiannopoulos | 2010-07-29 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | updated | Nikos Mavrogiannopoulos | 2010-07-29 | 1 | -8/+4 | |
| | | | | ||||||
* | | | | NCR_CIPHER_MAX_KEY_LEN no longer exist in userspace API. | Nikos Mavrogiannopoulos | 2010-07-28 | 5 | -5/+11 | |
| | | | | ||||||
* | | | | Use less stack and memory. | Nikos Mavrogiannopoulos | 2010-07-28 | 1 | -89/+91 | |
| | | | | ||||||
* | | | | Added Mirek. | Nikos Mavrogiannopoulos | 2010-07-28 | 1 | -0/+4 | |
| | | | | ||||||
* | | | | Don't access new objects when not holding a reference | Miloslav Trmač | 2010-07-28 | 2 | -2/+3 | |
| | | | | ||||||
* | | | | Fix error paths in _ncr_session_init | Miloslav Trmač | 2010-07-28 | 1 | -2/+4 | |
| | | | | ||||||
* | | | | Fix kmalloc return value check | Miloslav Trmač | 2010-07-28 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Return ENOMEM on session allocation errors | Miloslav Trmač | 2010-07-28 | 1 | -1/+1 | |
| | | | |