summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ripemd
AgeCommit message (Collapse)Author
2024-06-01md4/ripemd: remove misplaced semicolonsTheo Buehler
2024-06-01Neuter the bounded attribute as was done elsewhere for portableTheo Buehler
2024-06-01Reverse order of attributesTheo Buehler
requested by jsing on review
2024-06-01Remove support for static buffers in HMAC/digestsTheo Buehler
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
2024-03-28Hide symbols in RIPEMDjoshua
ok beck jsing
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@
2024-03-28Remove now unnecessary do { } while (0);Joel Sing
2024-03-28Inline HASH_MAKE_STRING.Joel Sing
No change in generated assembly.
2024-03-28Expand ROTATE macro to crypto_rol_u32().Joel Sing
2024-03-28Inline initial hash values.Joel Sing
2024-03-28Clean up various defines and prototypes.Joel Sing
No assembly implementations remain, hence we can clean the mess up and replace it with a single static void function.
2024-03-28Tidy includes.Joel Sing
2024-03-28Expand HASH_* defines.Joel Sing
No change to generated assembly.
2024-03-28Reorder functions.Joel Sing
No functional change.
2024-03-28Inline functions from md32_common.h for ripemd.Joel Sing
No change to generated assembly.
2024-03-28Remove now unused ripemd i386 assembly.Joel Sing
2023-08-10Mop up the last MD32_XARRAY.Joel Sing
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.
2023-08-10Inline the remaining 10 lines from rmdconst.h.Joel Sing
Discussed with tb@
2023-08-10Inline X variables definitions.Joel Sing
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@
2023-08-10Inline shift values.Joel Sing
Inline the SL and SR defines, which only makes the code harder to follow. No change to generated assembly. Discussed with tb@
2023-08-10Apply some more style(9).Joel Sing
No change in generated assembly.
2023-08-10Remove MD32_REG_T.Joel Sing
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@
2023-07-28Combine ripemd into a single C file.Joel Sing
2023-07-08Hit ripemd with the style(9) stick.Joel Sing
2023-07-08Inline rmd_local.h in rmd_dgst.c.Joel Sing
rmd_local.h is not really a local header, just another layer of indirection that cannot be included by anything other than rmd_dgst.c. As such, include it directly instead. No change in generated assembly.
2023-04-17Drop two useless READMEsTheo Buehler
"go ahead" jsing
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
i removed the arithmetics -> arithmetic changes, as i felt they were not clearly correct ok tb
2022-11-26Make internal header file names consistentTheo Buehler
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook
2016-12-21Explicitly export a list of symbols from libcrypto.Joel Sing
Move the "internal" BN functions from bn.h to bn_lcl.h and stop exporting the bn_* symbols. These are documented as only being intended for internal use, so why they were placed in a public header is beyond me... This hides 363 previously exported symbols, most of which exist in headers that are not installed and were never intended to be public. This also removes a few crusty old things that should have died long ago (like _ossl_old_des_read_pw). But don't worry... there are still 3451 symbols exported from the library. With input and testing from inoguchi@. ok beck@ inoguchi@
2015-09-10Correct spelling of OPENSSL_cleanse.Joel Sing
ok miod@
2015-09-10Remove pointless comments.Joel Sing
ok "captain obvious"
2014-10-28deregister; no binary changeJonathan Gray
ok jsing@ miod@
2014-10-20digests: *_LONG_LOG2 is not used, stop talking about it.Brent Cook
Modified patch from Dmitry Eremin-Solenikov leave the sole public define in ripemd.h ok deraadt@ miod@
2014-08-18remove return value from HOST_c2l/l2c macrosBrent Cook
These macros and asm inlines simulate a function returning a value, but nothing ever uses this return value. Remove the pseudo-returns and (void) casts discarding the unused values. This, maybe unsurprisingly, speeds things up a bit. It also removes the GCC 4.9 warnings about unused values. ok miod@ deraadt@
2014-07-10Explicitly include <openssl/opensslconf.h> in every file that referencesJoel Sing
an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
2014-07-09remove unused, private version strings except SSL_version_strBrent Cook
Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@
2014-06-12tags as requested by miod and teduTheo de Raadt
2014-06-07Remove various test stubs. The good ones have been moved by jsingTheo de Raadt
and others to the regress framework. These remaining ones just muddle us up when re-reading code repeatedly. ok jsing
2014-06-06s/assember/assembler/ before someone gets offended. At the lastTheo de Raadt
hackathon, just saying 'ass ember' was enough to start giggles. Unfortunately far more offensive stuff remains in here...
2014-05-24Almost nothing actually needs to include <openssl/e_os2.h>, however byJoel Sing
including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
2014-05-01Remove fips_md_init() macro indirection for digest algorithms, used by theMiod Vallat
OpenSSL FIPS module to prevent forbidden digests to be allowed. No functional change but readability. ok deraadt@
2014-04-18Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developersBob Beck
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@
2014-04-16Remove _CRAY references. Note that this pleads for the use of <stdint.h>Miod Vallat
fixed-width types instead of choosing int or long depending upon what we think the architecture support.
2014-04-15we don't use these files for buildingTed Unangst
2014-04-15remove FIPS mode support. people who require FIPS can buy something thatTed Unangst
meets their needs, but dumping it in here only penalizes the rest of us. ok beck deraadt
2014-04-15Moved to regress/lib/libcrypto.Miod Vallat
2014-04-15Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternityBob Beck
with the bearded ones... some API's that nobody should be using will dissapear with this commit.
2014-04-15remove pentium specific benchmark codeJonathan Gray
ok miod@
2014-04-14remove auto-generated dependencies from the old unused build system, soTheo de Raadt
that it is easier to find code pieces. They are getting in the way. ok miod
2014-04-13Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.Miod Vallat