diff options
author | Zack Weinberg <zack@owlfolio.org> | 2023-09-21 14:58:05 -0400 |
---|---|---|
committer | Zack Weinberg <zack@owlfolio.org> | 2023-09-21 16:24:59 -0400 |
commit | 46e817c4982dfda6aaf6863c141b2e56cfc75acd (patch) | |
tree | 7adb7aafbfc6d34a79cb729babfb4786996f9ce2 /sysdeps/sparc/sparc64/multiarch/md5-block.c | |
parent | 0a19410103c1c4890753596e294438786fa13a8c (diff) | |
download | glibc-zack/remove-libcrypt.tar glibc-zack/remove-libcrypt.tar.gz glibc-zack/remove-libcrypt.tar.bz2 glibc-zack/remove-libcrypt.zip |
Remove all of the remaining libcrypt code.zack/remove-libcrypt
Completing the removal of libcrypt, delete all of its actual code.
This patch contains only file removals:
git rm -r crypt
git rm include/crypt.h
git rm $(find sysdeps -name libcrypt.abilist)
git rm $(find sysdeps -name fips-private.h)
git rm $(find sysdeps -name 'md5-*' -o -name 'sha256-*' -o -name 'sha512-*')
For this patch (not the earlier ones, I'd still be waiting) I ran the
complete testsuite and found no *new* failures. 26 tests are failing
on my machine due to probable environment issues, but they were all
failing on trunk before I started making changes, and none of them
appear to have anything to do with this patchset.
Diffstat (limited to 'sysdeps/sparc/sparc64/multiarch/md5-block.c')
-rw-r--r-- | sysdeps/sparc/sparc64/multiarch/md5-block.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sysdeps/sparc/sparc64/multiarch/md5-block.c b/sysdeps/sparc/sparc64/multiarch/md5-block.c deleted file mode 100644 index 7c1a3a368f..0000000000 --- a/sysdeps/sparc/sparc64/multiarch/md5-block.c +++ /dev/null @@ -1,29 +0,0 @@ -#include <sparc-ifunc.h> - -#define __md5_process_block __md5_process_block_generic -extern void __md5_process_block_generic (const void *buffer, size_t len, - struct md5_ctx *ctx); - -#include <crypt/md5-block.c> - -#undef __md5_process_block - -extern void __md5_process_block_crop (const void *buffer, size_t len, - struct md5_ctx *ctx); -static bool cpu_supports_md5(int hwcap) -{ - unsigned long cfr; - - if (!(hwcap & HWCAP_SPARC_CRYPTO)) - return false; - - __asm__ ("rd %%asr26, %0" : "=r" (cfr)); - if (cfr & (1 << 4)) - return true; - - return false; -} - -extern void __md5_process_block (const void *buffer, size_t len, - struct md5_ctx *ctx); -sparc_libc_ifunc(__md5_process_block, cpu_supports_md5(hwcap) ? __md5_process_block_crop : __md5_process_block_generic); |