summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-30Tidy indentation.jsing2-8/+8
Requested by tb@
2024-03-30Remove -app2_1 flags being passed to dsa and rsa regress.jsing2-14/+2
Nothing does flag handling in these tests.
2024-03-29Tweak defines since the Td4 table is only used for AES_{encrypt,decrypt}jsing1-6/+9
2024-03-29Always use C functions for AES_{encrypt,decrypt}().jsing14-84/+124
Always provide AES_{encrypt,decrypt}() via C functions, which then either use a C implementation or call the assembly implementation. ok tb@
2024-03-29Remove previously missed idea file.jsing1-176/+0
2024-03-29Consolidate cast code.jsing7-703/+398
2024-03-29Consolidate camellia code.jsing9-640/+124
2024-03-29Move camellia to primary Makefile.jsing12-44/+14
These files are now built on all platforms.
2024-03-29Add table-driven Whirlpool testsjoshua3-1/+251
ok tb
2024-03-29Remove now unused camellia assembly implementations.jsing2-2001/+0
2024-03-29Stop building camellia assembly on amd64 and i386.jsing2-5/+8
This is a legacy algorithm and the assembly is only marginally faster than the C code. Discussed with beck@ and tb@
2024-03-29Sprinkle a few references to RFC 8419tb3-6/+15
2024-03-29Add regress coverage for EdDSA in CMStb1-6/+42
2024-03-29Implement Ed25519 signatures for CMS (RFC 8419)tb2-21/+126
This adds support for Edwards curve digital signature algorithms in the cryptographic message syntax, as specified in RFC 8419. Only Ed25519 is supported since that is the only EdDSA algorithm that LibreSSL supports (this is unlikely to change ever, but, as they say - never is a very long time). This has the usual curly interactions between EVP and CMS with poorly documented interfaces and lots of confusing magic return values and controls. This improves upon existing control handlers by documenting what is being done and why. Unlike other (draft) implementations we also happen to use the correct hashing algorithm. There are no plans to implement RFC 8418. joint work with job at p2k23 ok jsing
2024-03-29Move aes_core.c to the primary Makefile.jsing12-32/+12
This is now built on all platforms.
2024-03-29Consolidate idea into a single C file.jsing5-357/+287
2024-03-29Remove unused n2ln, l2nn, n2l and l2n macros.jsing1-44/+1
2024-03-29Make X509_VERIFY_PARAM_set1_policies() less badtb1-22/+34
If any OBJ_dup() fails along the way, a partially copied policy stack would remain on the params object. This makes no sense. Implement and use an sk_ASN1_OBJECT_deep_copy(), that copies the full stack or else returns NULL. Remove unnecessary NULL check and streamline some other logic. ok jsing
2024-03-29Clean up X509_VERIFY_PARAM_add0_policy()tb1-6/+5
Streamline some checks and use more idiomatic sk_push() error check ok jsing
2024-03-29Always use C functions for AES_set_{encrypt,decrypt}_key().jsing9-57/+100
Always include aes_core.c and provide AES_set_{encrypt,decrypt}_key() via C functions, which then either use a C implementation or call the assembly implementation. ok tb@
2024-03-29Retire mime_debug()tb1-5/+1
discussed with jsing
2024-03-29Improve error checking in i2d_ASN1_bio_stream()tb1-23/+24
The streaming BIO API is full of missing error checks. This diff reverts the logic so that the single call to ASN1_item_i2d_bio() is error checked (it has the usual 1/0 return values), unindents the bulk of the code and propagates the SMIME_crlf_copy() return value (alos 1/0) to be the actual error. ok jsing
2024-03-29Consolidate whirlpool into a single C file.jsing4-284/+229
Buy a vowel at the same time, since we're no longer limited to 8.3 file names. Discussed with tb@
2024-03-29Remove now unused assembly implementations of whirlpool.jsing2-978/+0
2024-03-29Hide symbols in Blowfishjoshua3-1/+51
ok jsing tb
2024-03-29Move wp_block.c to the primary Makefile.jsing12-35/+12
This is now built on all platforms.
2024-03-29Remove CMS special now that we do not depend on pem.h being included first.jsing1-2/+1
2024-03-29Stop playing #ifdef HEADER_PEM_H games in cms.h.jsing1-3/+4
Rather than making prototypes appear and disappear depending on whether or not you've included pem.h before cms.h, just include pem.h from cms.h itself. ok joshua@ tb@
2024-03-29Stop using pem2.h.jsing2-4/+3
Somewhere in the past 25 years, the circular dependency between err and pem went away. Stop pulling in pem2.h and just use pem.h directly (pem2.h can probably be removed at some point, but that remains for another day). ok joshua@ tb@
2024-03-29Hide symbols in DESjoshua22-20/+157
ok jsing beck
2024-03-29Rename AES_cbc_encrypt to aes_cbc_encrypt_internal for the SEH handlers.jsing1-4/+4
Should fix windows build.
2024-03-29Stop building whirlpool assembly on amd64 and i386.jsing2-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-29Fix indenttb1-2/+2
2024-03-29Apply style(9) hammer.jsing1-118/+117
The code is still a horrific mess, but at least the braces are in the right place...
2024-03-28Hide symbols in RIPEMDjoshua3-1/+45
ok beck jsing
2024-03-28Merge aes_cbc.c into aes.c now that aes_cbc.c is used on all platforms.jsing14-102/+43
2024-03-28Make AES_cbc_encrypt() always be a C function.jsing5-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-28Use static inline for rc4_set_key_internal().jsing1-2/+2
2024-03-28Remove unused SM3_Transform()jsing1-9/+1
Along with the misnamed SM3_transform() prototype.
2024-03-28Rename SM3_block_data_order() and make static.jsing1-9/+8
2024-03-28Remove md32_common.h since it is now (finally) unused.jsing1-309/+0
2024-03-28Rework loads and stores for sm3.jsing1-61/+57
Replace loads with crypto_load_be32toh() or be32toh(). Use crypto_store_htobe32() or htobe32() for stores. ok tb@
2024-03-28Remove .init section that calls OPENSSL_cpuid_setup on i386.jsing1-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-28Remove .init section that calls OPENSSL_cpuid_setup on amd64.jsing1-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-28Rework loads and stores in ripemd.jsing1-74/+53
Replace loads with crypto_load_le32toh() or le32toh(). Use crypto_store_htole32() or htole32() for stores. ok joshua@ tb@
2024-03-28Remove OPENSSL_UNISTD definetb13-39/+0
2024-03-28Expand ROTATE macro to crypto_rol_u32().jsing1-8/+10
2024-03-28Include stdint.h since we use uint*_t types.jsing1-1/+2
2024-03-28Inline initial hash values.jsing1-18/+11
2024-03-28Remove no unnecessary do { } while (0);jsing1-3/+1