crypto: use byteswap
commit0d45ec7c033c165ad73a6509c7fa84aa67edf4ea
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2018 21:35:37 +0000 (17 14:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2018 21:38:05 +0000 (17 14:38 -0700)
treec0177a94dcfb05477b64bc2cbbe8576753b74907
parentb80cc10aeb8dd2b94bf0be2a5d0b2efb95965e24
crypto: use byteswap

* lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
* lib/sm3.c: Include <byteswap.h>.
(SWAP): Use its macros rather than reinventing the wheel.
* modules/crypto/md4, modules/crypto/md5-buffer:
* modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
* modules/crypto/sha512-buffer, modules/crypto/sm3:
(Depends-on): Add byteswap.
13 files changed:
ChangeLog
lib/md4.c
lib/md5.c
lib/sha1.c
lib/sha256.c
lib/sha512.c
lib/sm3.c
modules/crypto/md4
modules/crypto/md5-buffer
modules/crypto/sha1-buffer
modules/crypto/sha256-buffer
modules/crypto/sha512-buffer
modules/crypto/sm3