Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2024-03-29 | Stop building whirlpool assembly on amd64 and i386. | jsing | 2 | -6/+3 | |
This is a legacy algorithm and the assembly is only marginally faster than the C code. Discussed with beck@ and tb@ | |||||
2024-03-29 | Fix indent | tb | 1 | -2/+2 | |
2024-03-29 | Apply style(9) hammer. | jsing | 1 | -118/+117 | |
The code is still a horrific mess, but at least the braces are in the right place... | |||||
2024-03-28 | Hide symbols in RIPEMD | joshua | 3 | -1/+45 | |
ok beck jsing | |||||
2024-03-28 | Merge aes_cbc.c into aes.c now that aes_cbc.c is used on all platforms. | jsing | 14 | -102/+43 | |
2024-03-28 | Make AES_cbc_encrypt() always be a C function. | jsing | 5 | -17/+32 | |
Rename the assembly generated functions from AES_cbc_encrypt() to aes_cbc_encrypt_internal(). Always include aes_cbc.c and change it to use defines that are similar to those used in BN. ok tb@ | |||||
2024-03-28 | Use static inline for rc4_set_key_internal(). | jsing | 1 | -2/+2 | |
2024-03-28 | Remove unused SM3_Transform() | jsing | 1 | -9/+1 | |
Along with the misnamed SM3_transform() prototype. | |||||
2024-03-28 | Rename SM3_block_data_order() and make static. | jsing | 1 | -9/+8 | |
2024-03-28 | Remove md32_common.h since it is now (finally) unused. | jsing | 1 | -309/+0 | |
2024-03-28 | Rework loads and stores for sm3. | jsing | 1 | -61/+57 | |
Replace loads with crypto_load_be32toh() or be32toh(). Use crypto_store_htobe32() or htobe32() for stores. ok tb@ | |||||
2024-03-28 | Remove .init section that calls OPENSSL_cpuid_setup on i386. | jsing | 1 | -4/+0 | |
OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence we do not need or want automatic initialisation on library load. | |||||
2024-03-28 | Remove .init section that calls OPENSSL_cpuid_setup on amd64. | jsing | 1 | -10/+0 | |
OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence we do not need or want automatic initialisation on library load. ok tb@ | |||||
2024-03-28 | Rework loads and stores in ripemd. | jsing | 1 | -74/+53 | |
Replace loads with crypto_load_le32toh() or le32toh(). Use crypto_store_htole32() or htole32() for stores. ok joshua@ tb@ | |||||
2024-03-28 | Remove OPENSSL_UNISTD define | tb | 13 | -39/+0 | |
2024-03-28 | Expand ROTATE macro to crypto_rol_u32(). | jsing | 1 | -8/+10 | |
2024-03-28 | Include stdint.h since we use uint*_t types. | jsing | 1 | -1/+2 | |
2024-03-28 | Inline initial hash values. | jsing | 1 | -18/+11 | |
2024-03-28 | Remove no unnecessary do { } while (0); | jsing | 1 | -3/+1 | |
2024-03-28 | Inline HASH_MAKE_STRING. | jsing | 1 | -17/+20 | |
No change to generated assembly. | |||||
2024-03-28 | Expand HASH_* defines. | jsing | 1 | -26/+28 | |
No change in generated assembly. | |||||
2024-03-28 | Hide symbols in RC4 | joshua | 3 | -1/+36 | |
ok jsing tb beck | |||||
2024-03-28 | Reorder functions. | jsing | 1 | -116/+115 | |
No functional change. | |||||
2024-03-28 | Tidy includes. | jsing | 1 | -5/+5 | |
2024-03-28 | Inline functions from md32_common.h. | jsing | 1 | -1/+101 | |
No change in generated assembly. | |||||
2024-03-28 | Load in the top of the loop, as we do for other hash implementations. | jsing | 2 | -20/+20 | |
2024-03-28 | Remove now unnecessary do { } while (0); | jsing | 1 | -3/+1 | |
2024-03-28 | Inline HASH_MAKE_STRING. | jsing | 1 | -14/+14 | |
No change in generated assembly. | |||||
2024-03-28 | Expand ROTATE macro to crypto_rol_u32(). | jsing | 1 | -11/+16 | |
2024-03-28 | Demacro sha1. | jsing | 1 | -164/+252 | |
Replace macros with static inline functions and use names that follow the spec more closely. Unlike SHA256/SHA512, the functions and constants do not align with the number of words loaded, which means we cannot easily loop and just end up just unrolling everything. ok joshua@ tb@ | |||||
2024-03-28 | Inline initial hash values. | jsing | 1 | -12/+8 | |
2024-03-28 | Clean up various defines and prototypes. | jsing | 1 | -28/+2 | |
No assembly implementations remain, hence we can clean the mess up and replace it with a single static void function. | |||||
2024-03-28 | Use TLS_ERROR_INVALID_ARGUMENT for "too large" and "too small" errors | joshua | 2 | -8/+9 | |
ok beck tb | |||||
2024-03-28 | Nuke more gost | beck | 2 | -0/+0 | |
2024-03-28 | Nuke more leftover GOST tendrils. | beck | 4 | -1499/+2 | |
ok tb@ | |||||
2024-03-28 | Tidy includes. | jsing | 1 | -4/+4 | |
2024-03-28 | Expand HASH_* defines. | jsing | 1 | -27/+29 | |
No change to generated assembly. | |||||
2024-03-28 | Reorder functions. | jsing | 1 | -109/+109 | |
No functional change. | |||||
2024-03-28 | Inline functions from md32_common.h for ripemd. | jsing | 1 | -1/+101 | |
No change to generated assembly. | |||||
2024-03-28 | Fix line wrapping. | jsing | 1 | -6/+4 | |
2024-03-28 | Remove fallback files that are now always included in the build. | jsing | 1 | -5/+1 | |
2024-03-28 | Use TLS_ERROR_OUT_OF_MEMORY error code for calloc errors in libtls | joshua | 1 | -6/+7 | |
ok jsing | |||||
2024-03-28 | Move rc4.c to primary Makefile. | jsing | 12 | -32/+14 | |
This is now built on all platforms. | |||||
2024-03-28 | Use C functions for RC4 public API. | jsing | 5 | -21/+52 | |
Rather than having public API switch between C and assembly, always use C functions as entry points, which then call an assembly implementation (if available). This makes it significantly easier to deal with symbol aliasing/namespaces and it also means we benefit from vulnerability prevention provided by the C compiler. Rename the assembly generated functions from RC4() to rc4_internal() and RC4_set_key() to rc4_set_key_internal(). Always include rc4.c and change it to use defines that are similar to those used in BN. ok beck@ joshua@ tb@ | |||||
2024-03-28 | Fix coverity complaints. | beck | 1 | -4/+6 | |
2024-03-28 | Check the return value of EVP_CIPHER_CTX_reset() | tb | 1 | -3/+5 | |
The function call can't actually fail, but all other calls check its return value. ok joshua jsing | |||||
2024-03-28 | Move des sources to primary Makefile. | jsing | 12 | -35/+13 | |
Now that all platforms use a C des implementation, move it to the primary Makefile. | |||||
2024-03-28 | Remove now unused des assembly. | jsing | 3 | -2630/+0 | |
2024-03-28 | Stop building the assembly implementation of des on sparc64. | jsing | 1 | -6/+2 | |
This one was hiding behind an m4 script. Build tested by tb@ | |||||
2024-03-28 | Remove now unused ripemd i386 assembly. | jsing | 1 | -591/+0 | |