summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-29Move camellia to primary Makefile.Joel Sing
These files are now built on all platforms.
2024-03-29Add table-driven Whirlpool testsjoshua
ok tb
2024-03-29Remove now unused camellia assembly implementations.Joel Sing
2024-03-29syncTheo de Raadt
2024-03-29Stop building camellia assembly on amd64 and i386.Joel Sing
This is a legacy algorithm and the assembly is only marginally faster than the C code. Discussed with beck@ and tb@
2024-03-29Stop printing the "syscall" bit related to msyscall(2), since the subsystemTheo de Raadt
is being deleted.
2024-03-29No longer build the objective-C compiler (cc1obj). Its standard libraryMiod Vallat
(libobjc) had been removed from the build years ago, there is no need to keep the compiler. ok beck@ joshua@
2024-03-29Remove one global variable duplicating uvmexp.pagesize.Miod Vallat
ok guenther@ deraadt@
2024-03-29Simplify the conditionals for architectures which do not need any particularMiod Vallat
md files lists. ok guenther@ deraadt@
2024-03-29the msyscall(2) manual page can be deleted.Theo de Raadt
Also, the details described in sigaltstack(2) are no longer true. ok jmc
2024-03-29Remove the at-syscall-time check for msyscall(2)'s behaviour. msyscall(2)Theo de Raadt
was a big coding effort to ensure that system calls could only be performed from static-binary/ld.so/libc.so/sigtramp regions of memory, by caching a uvm entry with a serial number; new mmap/mprotect calls would increment the map serial, and the entry would need to be looked up again. So the cost was O(1) in the usual case, but O(log n) with some locking if a map change required a new lookup. In the new world order, such regions are immutable so they cannot be changed/split by mmap/mprotect; also we know the precise entry locations of the syscalls due to system call pinning (ELF OPENBSD_SYSCALL and pinsyscalls(2)), and this is all done as O(1) without any locking. All the other parts of the subsystem will be ripped out but please run a kernel with this before I make changes to ld.so.. ok kettenis
2024-03-29Sprinkle a few references to RFC 8419Theo Buehler
2024-03-29Add regress coverage for EdDSA in CMSTheo Buehler
2024-03-29Implement Ed25519 signatures for CMS (RFC 8419)Theo Buehler
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.Joel Sing
This is now built on all platforms.
2024-03-29Consolidate idea into a single C file.Joel Sing
2024-03-29Remove unused n2ln, l2nn, n2l and l2n macros.Joel Sing
2024-03-29Make X509_VERIFY_PARAM_set1_policies() less badTheo Buehler
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()Theo Buehler
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().Joel Sing
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()Theo Buehler
discussed with jsing
2024-03-29Improve error checking in i2d_ASN1_bio_stream()Theo Buehler
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.Joel Sing
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.Joel Sing
2024-03-29Hide symbols in Blowfishjoshua
ok jsing tb
2024-03-29Elkhart Lake needs the 0V quirkJonathan Gray
fixes accessing eMMC on a machine with Celeron J6413 from and tested by Sven Falempin
2024-03-29Move wp_block.c to the primary Makefile.Joel Sing
This is now built on all platforms.
2024-03-29Sync EVP_MD_meth removal with what landed upstreamTheo Buehler
discussed with djm
2024-03-29Remove CMS special now that we do not depend on pem.h being included first.Joel Sing
2024-03-29Stop playing #ifdef HEADER_PEM_H games in cms.h.Joel Sing
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.Joel Sing
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 DESjoshua
ok jsing beck
2024-03-29Rename AES_cbc_encrypt to aes_cbc_encrypt_internal for the SEH handlers.Joel Sing
Should fix windows build.
2024-03-29Stop building whirlpool assembly on amd64 and i386.Joel Sing
This is a legacy algorithm and the assembly is only marginally faster than the C code. Discussed with beck@ and tb@
2024-03-29Back out tzset(3) change, it is not effective.Todd C. Miller
2024-03-29Call tzset() in main() so we don't need to check TZ repeatedly.Todd C. Miller
This has the greatest impact on makewhatis, which used to make thousands of calls to issetugid(2) via localtime(3) and strftime(3). Inspired by a different diff from miod@. OK miod@
2024-03-29Fix indentTheo Buehler
2024-03-29Apply style(9) hammer.Joel Sing
The code is still a horrific mess, but at least the braces are in the right place...
2024-03-28Hide symbols in RIPEMDjoshua
ok beck jsing
2024-03-28Alder Lake-N eMMC needs the 0V quirkJonathan Gray
fixes accessing eMMC on MeLE Quieter 4C from and tested by Colin Didier
2024-03-28Merge aes_cbc.c into aes.c now that aes_cbc.c is used on all platforms.Joel Sing
2024-03-28Make AES_cbc_encrypt() always be a C function.Joel Sing
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().Joel Sing
2024-03-28Remove unused SM3_Transform()Joel Sing
Along with the misnamed SM3_transform() prototype.
2024-03-28Rename SM3_block_data_order() and make static.Joel Sing
2024-03-28Remove md32_common.h since it is now (finally) unused.Joel Sing
2024-03-28Rework loads and stores for sm3.Joel Sing
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.Joel Sing
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.Joel Sing
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.Joel Sing
Replace loads with crypto_load_le32toh() or le32toh(). Use crypto_store_htole32() or htole32() for stores. ok joshua@ tb@