summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md4/md4.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for static buffers in HMAC/digeststb2024-06-011-4/+1
| | | | | | | | | | | | | | | | | | HMAC() and the one-step digests used to support passing a NULL buffer and would return the digest in a static buffer. This design is firmly from the nineties, not thread safe and it saves callers a single line. The few ports that used to rely this were fixed with patches sent to non-hostile (and non-dead) upstreams. It's early enough in the release cycle that remaining uses hidden from the compiler should be caught, at least the ones that matter. There won't be that many since BoringSSL removed this feature in 2017. https://boringssl-review.googlesource.com/14528 Add non-null attributes to the headers and add a few missing bounded attributes. ok beck jsing
* Load in the top of the loop, as we do for other hash implementations.jsing2024-03-281-10/+10
|
* Demacro md4.jsing2024-03-271-100/+84
| | | | | | | Use static inline functions instead of macros. Also number rounds as per the RFC. ok joshua@ tb@
* Inline initial values.jsing2024-03-261-11/+8
| | | | No functional change.
* Rework input and output handling for md4.jsing2024-03-261-55/+61
| | | | | | Use le32toh(), htole32() and crypto_{load,store}_htole32() as appropriate. ok joshua@ tb@
* Remove now unnecessary do {} while (0);jsing2024-03-261-3/+1
|
* Inline HASH_MAKE_STRING.jsing2024-03-261-13/+12
| | | | No change to generated assembly.
* Reorder functions expanded from md32_common.h.jsing2024-03-261-103/+102
| | | | No functional change.
* Expand HASH_* defines.jsing2024-03-261-26/+28
| | | | No change to generated assembly.
* Inline hash functions from md32_common.h.jsing2024-03-261-1/+102
| | | | No change to generated assembly.
* Reorder functions.jsing2024-03-261-13/+13
| | | | No functional change.
* Tidy includes.jsing2023-08-101-4/+2
|
* Remove MD32_REG_T.jsing2023-08-101-3/+3
| | | | | | | | | This is a hack that is only enabled on a handful of 64 bit platforms, as a workaround for poor compiler optimisation. If you're running an archiac compiler on an archiac architecture, then you can deal with slightly lower performance. ok tb@
* Combine md4 into a single C file.jsing2023-07-281-0/+266
|
* Remove various test stubs. The good ones have been moved by jsingderaadt2014-06-071-125/+0
| | | | | | and others to the regress framework. These remaining ones just muddle us up when re-reading code repeatedly. ok jsing
* Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developersbeck2014-04-181-3/+1
| | | | | | | | they had resorted to manually protyping read(2) instead of incredible amount of preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just include <unistd.h> and we don't need to do this.. While we're at it flense out _OSD_POSIX and __DGJPP__ cruft. ok krw@
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-2/+2
|
* openssl-engine-0.9.6 mergebeck2000-12-151-0/+127