"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "littleutils/sha256.c" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

sha256.c  (littleutils-1.2.4.tar.lz):sha256.c  (littleutils-1.2.5.tar.lz)
skipping to change at line 21 skipping to change at line 21
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* Written by David Madore, considerably copypasting from Scott G. Miller's /* Written by David Madore, considerably copypasting from Scott G. Miller's
sha1.c. Modifications for portability and partial file reads by Brian sha1.c. Modifications for portability and partial file reads by Brian
Lindholm, 2007-2020. */ Lindholm, 2007-2021. */
#include <config.h> #include <config.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include "sha256.h"
#ifdef HAVE_STDALIGN_H #ifdef HAVE_STDALIGN_H
# include <stdalign.h> # include <stdalign.h>
#endif #endif
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include "sha256.h"
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
# define SWAP(n) (n) # define SWAP(n) (n)
#else #else
# ifdef HAVE_BYTESWAP_H # ifdef HAVE_BYTESWAP_H
# include <byteswap.h> # include <byteswap.h>
# define SWAP(n) bswap_32 (n) # define SWAP(n) bswap_32 (n)
# else # else
# define SWAP(n) (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24)) # define SWAP(n) (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
# endif # endif
 End of changes. 3 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)