History log of /openbsd-src/lib/libcrypto/ripemd/ripemd.c (Results 1 – 19 of 19)
Revision Date Author Comments
# 9cb04522 01-Jun-2024 tb <tb@openbsd.org>

Remove support for static buffers in HMAC/digests

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

Remove support for static buffers in HMAC/digests

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

show more ...


# 1abe9018 28-Mar-2024 joshua <joshua@openbsd.org>

Hide symbols in RIPEMD

ok beck jsing


# d7368aa8 28-Mar-2024 jsing <jsing@openbsd.org>

Rework loads and stores in ripemd.

Replace loads with crypto_load_le32toh() or le32toh(). Use
crypto_store_htole32() or htole32() for stores.

ok joshua@ tb@


# 558da935 28-Mar-2024 jsing <jsing@openbsd.org>

Remove now unnecessary do { } while (0);


# 3c2f79a1 28-Mar-2024 jsing <jsing@openbsd.org>

Inline HASH_MAKE_STRING.

No change in generated assembly.


# 792546e7 28-Mar-2024 jsing <jsing@openbsd.org>

Expand ROTATE macro to crypto_rol_u32().


# b3a1fd4e 28-Mar-2024 jsing <jsing@openbsd.org>

Inline initial hash values.


# 92feb87f 28-Mar-2024 jsing <jsing@openbsd.org>

Clean up various defines and prototypes.

No assembly implementations remain, hence we can clean the mess up and
replace it with a single static void function.


# 2646ee00 28-Mar-2024 jsing <jsing@openbsd.org>

Tidy includes.


# 8e0deacd 28-Mar-2024 jsing <jsing@openbsd.org>

Expand HASH_* defines.

No change to generated assembly.


# 3f6e5597 28-Mar-2024 jsing <jsing@openbsd.org>

Reorder functions.

No functional change.


# 32bf421d 28-Mar-2024 jsing <jsing@openbsd.org>

Inline functions from md32_common.h for ripemd.

No change to generated assembly.


# 390c0236 10-Aug-2023 jsing <jsing@openbsd.org>

Mop up the last MD32_XARRAY.

MD32_XARRAY was added as a workaround for a broken HP C compiler (circa
1999). Clean it up to simplify the code.

No change in generated assembly.


# 0428e55c 10-Aug-2023 jsing <jsing@openbsd.org>

Inline the remaining 10 lines from rmdconst.h.

Discussed with tb@


# 66354b7b 10-Aug-2023 jsing <jsing@openbsd.org>

Inline X variables definitions.

Inline the WL and WR defines, which only add yet another layer of
abstraction and make the code harder to follow.

No change to generated assembly.

Discussed with tb@


# e583478b 10-Aug-2023 jsing <jsing@openbsd.org>

Inline shift values.

Inline the SL and SR defines, which only makes the code harder to follow.

No change to generated assembly.

Discussed with tb@


# 5a569441 10-Aug-2023 jsing <jsing@openbsd.org>

Apply some more style(9).

No change in generated assembly.


# cd67cc31 10-Aug-2023 jsing <jsing@openbsd.org>

Remove MD32_REG_T.

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 architect

Remove MD32_REG_T.

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@

show more ...


# 71471113 28-Jul-2023 jsing <jsing@openbsd.org>

Combine ripemd into a single C file.