summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'standalone-rename' into userspace-cryptoMiloslav Trmač2010-08-0535-6/+40
|\ | | | | | | | | | | | | | | | | | | Conflicts: crypto/userspace/ncr-dh.c crypto/userspace/ncr-key-storage.c crypto/userspace/ncr-key-wrap.c crypto/userspace/ncr-key.c crypto/userspace/ncr-limits.c crypto/userspace/ncr-pk.c
| * Merge branch 'standalone-master' into standalone-renameMiloslav Trmač2010-08-0535-6/+40
| |\
| | * Merge branch 'bugfixes'Miloslav Trmač2010-08-0534-4/+38
| | |\
| | | * Fix build with recent kernelsJan Chadima2010-08-0534-4/+38
| | | |
| | * | Merge branch 'replace-lists'Miloslav Trmač2010-08-051-2/+2
| | |\ \
| | | * | Change NCR_{KEY,SESSION}_INVALIDMiloslav Trmač2010-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | We can allocate ID 0 now. Note that this is an ABI change.
* | | | | Merge branch 'standalone-rename' into userspace-cryptoMiloslav Trmač2010-08-043-99/+29
|\| | | |
| * | | | Remove man page that doesn't belong in the kernelMiloslav Trmač2010-08-041-554/+0
| | | | |
| * | | | Merge branch 'standalone-master' into standalone-renameMiloslav Trmač2010-08-044-99/+583
| |\| | |
| | * | | Merge branch 'bugfixes'Miloslav Trmač2010-08-043-99/+29
| | |\ \ \ | | | | |/ | | | |/|
| | | * | Drop the key generation work queueMiloslav Trmač2010-08-043-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-021-0/+554
| | |\ \ \
| | | * | | Add man page for /dev/cryptoMiloslav Trmač2010-08-021-0/+554
| | | | | |
* | | | | | Explicitly add crypto/userspace to #include pathMiloslav Trmač2010-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for in-tree builds, where this path is not added by default. The alternative of using #include "..." is inconvenient for libtomcrypt headers nested several subdirectories deep that need to refer to ncr-int.h.
* | | | | | Merge branch 'standalone-rename' into userspace-cryptoMiloslav Trmač2010-08-021-1/+2
|\| | | | |
| * | | | | Merge branch 'standalone-master' into standalone-renameMiloslav Trmač2010-08-021-1/+2
| |\| | | |
| | * | | | Merge branch 'bugfixes'Miloslav Trmač2010-08-021-1/+2
| | |\ \ \ \ | | | | |/ / | | | |/| |
| | | * | | Fix error path in ncr_key_generateMiloslav Trmač2010-08-021-1/+2
| | | | | |
* | | | | | Merge branch 'standalone-rename' into userspace-cryptoMiloslav Trmač2010-07-317-303/+328
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crypto/userspace/ncr-int.h crypto/userspace/ncr-limits.c
| * | | | | Merge branch 'standalone-master' into standalone-renameMiloslav Trmač2010-07-317-303/+328
| |\| | | |
| | * | | | Merge branch 'replace-lists'Miloslav Trmač2010-07-316-302/+319
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | Merge branch 'master' into replace-listsMiloslav Trmač2010-07-3013-123/+172
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr-key.c ncr.c
| | | * | | Finally remove the unused list_sem_st.Miloslav Trmač2010-07-281-5/+0
| | | | | |
| | | * | | Merge branch 'bugfixes' into replace-listsMiloslav Trmač2010-07-282-4/+0
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr.c
| | | | * | | Drop left-over code for data objectsMiloslav Trmač2010-07-272-4/+0
| | | | | | |
| | | * | | | Stop looking in the hash table after the first match.Miloslav Trmač2010-07-281-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 lookupMiloslav Trmač2010-07-281-45/+80
| | | | | | |
| | | * | | | Store all types of limits together.Miloslav Trmač2010-07-282-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 lookupMiloslav Trmač2010-07-283-69/+52
| | | | | | |
| | | * | | | Use <linux/idr.h> for key ID allocation and lookupMiloslav Trmač2010-07-283-110/+88
| | | | | | |
| | | * | | | Use ncr_lists instead of list_sem_st in intefacesMiloslav Trmač2010-07-275-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-311-1/+1
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | Fix error path in unwrap_aesMiloslav Trmač2010-07-301-1/+1
| | | | |/ | | | |/|
| | * | | Merge branch 'algorithm-speedup'Miloslav Trmač2010-07-311-0/+8
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Merge branch 'master' into algorithm-speedupMiloslav Trmač2010-07-2632-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 onceMiloslav Trmač2010-07-243-9/+5
| | | | | |
| | | * | | Replace _ncr_algo_to_str by direct accessesMiloslav Trmač2010-07-244-30/+10
| | | | | |
| | | * | | Replace _ncr_algo_digest_size by direct accessesMiloslav Trmač2010-07-249-30/+11
| | | | | |
| | | * | | Use algo_properties_st in hash_is_validMiloslav Trmač2010-07-2413-14/+14
| | | | | |
| | | * | | Use algo_properties_st in hash_memory_multiMiloslav Trmač2010-07-245-9/+9
| | | | | |
| | | * | | Use algo_properties_st in hash_memoryMiloslav Trmač2010-07-245-11/+11
| | | | | |
| | | * | | Use algo_properties_st in pkcs_1_mgf1Miloslav Trmač2010-07-246-12/+12
| | | | | |
| | | * | | Use algo_properties_st in pkcs_1_pss_decodeMiloslav Trmač2010-07-243-8/+8
| | | | | |
| | | * | | Use algo_properties_st in pkcs_1_oaep_decodeMiloslav Trmač2010-07-243-10/+10
| | | | | |
| | | * | | Use algo_properties_st in pkcs_1_pss_encodeMiloslav Trmač2010-07-243-8/+8
| | | | | |
| | | * | | Use algo_properties_st in pkcs_1_oaep_encodeMiloslav Trmač2010-07-243-11/+13
| | | | | |
| | | * | | Use algo_properties_st in hash_get_oidMiloslav Trmač2010-07-244-5/+7
| | | | | |
| | | * | | Replace algo_can_*, algo_needs_iv with direct accessesMiloslav Trmač2010-07-241-62/+5
| | | | | |
| | | * | | Use algo_properties_st in rsa_verify_hash_exMiloslav Trmač2010-07-243-9/+10
| | | | | |
| | | * | | Use algo_properties_st in rsa_sign_hash_exMiloslav Trmač2010-07-243-9/+10
| | | | | |