"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "littleutils/sha256.h" 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.h  (littleutils-1.2.4.tar.lz):sha256.h  (littleutils-1.2.5.tar.lz)
skipping to change at line 18 skipping to change at line 18
(at your option) any later version. (at your option) any later version.
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/>. */
/* Modifications for partial file reads by Brian Lindholm, 2007-2020. */ /* Modifications for partial file reads by Brian Lindholm, 2007-2021. */
#ifndef SHA256_H #ifndef SHA256_H
#define SHA256_H 1 #define SHA256_H 1
#include <config.h> #include <config.h>
#include <stdio.h>
#if HAVE_INTTYPES_H #if HAVE_INTTYPES_H
# include <inttypes.h> # include <inttypes.h>
#endif #endif
#if HAVE_STDINT_H || _LIBC #if HAVE_STDINT_H || _LIBC
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
enum { SHA224_DIGEST_SIZE = 224 / 8 }; enum { SHA224_DIGEST_SIZE = 224 / 8 };
enum { SHA256_DIGEST_SIZE = 256 / 8 }; enum { SHA256_DIGEST_SIZE = 256 / 8 };
/* Structure to save state of computation between the single steps. */ /* Structure to save state of computation between the single steps. */
struct sha256_ctx struct sha256_ctx
{ {
uint32_t state[8]; uint32_t state[8];
uint32_t total[2]; uint32_t total[2];
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

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