glibc/locale
Zack Weinberg f59011763c Import Solar Designer's public domain MD5 for use by localedef.
Locale archives contain embedded MD5 hashes for integrity protection.
glibc's locale-reading code does not check these, but localedef does
generate them.  It was reusing crypt/md5.c for the implementation.
Rather than moving that file over to locale/, import Alexander
Peslyak (aka Solar Designer)'s public domain MD5 implementation, which
is simpler, and in particular, completely agnostic to endianness.  The
API uses different names, because Peslyak wanted to be API-compatible
with openssl, but is otherwise equivalent.

glibc's *tests* of the MD5 core (crypt/md5test.c and crypt/md5test-giant.c)
are transferred to the locale directory, and the new implementation is
verified to pass both.  (The "giant" test takes 90 seconds to run on a
2018-era x86; it was in xtests in crypt and it remains in xtests after
this patch.)  I converted both of them to the new test driver while I
was in there.

crypt/md5c-test.c is a test of MD5 *password hashing*, not of the MD5
core, so it is not moved.

This patch was compile-tested with both --enable-crypt and the default
--disable-crypt.
2023-09-21 16:05:43 -04:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
programs Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
tst-localedef-path-norm.root localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C_name.c
C-address.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-collate-seq.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-name.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-translit.h.in Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
categories.def Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gen-translit.py Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
global-locale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hashval.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
indigits.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iso-639.def Add rif_MA locale [BZ #27781] 2022-04-07 14:59:41 +02:00
iso-3166.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iso-4217.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
langinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
loadarchive.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
loadlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
locale.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localeinfo.h Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
localename.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
locarchive.h Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
Makefile Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
md5.c Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
md5.h Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
newlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setlocale.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
strlen-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
SYS_libc.c
tst-C-locale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-duplocale.c
tst-locale-locpath.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-localedef-path-norm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-locname.c
tst-md5-giant.c Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
tst-md5.c Import Solar Designer's public domain MD5 for use by localedef. 2023-09-21 16:05:43 -04:00
uselocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions C2x strtol binary constant handling 2023-02-16 23:02:40 +00:00
weight.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
weightwc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00