annotate mercurial/thirdparty/sha1dc/lib/sha1.c @ 50896:b2b8c25f9462

hgwebmod: use sysstr to check for attribute presence We do not need bytes here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 30 Aug 2023 13:28:09 +0200
parents a0e39f5bb7cd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44057
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1 /***
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
2 * Copyright 2017 Marc Stevens <marc@marc-stevens.nl>, Dan Shumow (danshu@microsoft.com)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
3 * Distributed under the MIT Software License.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
4 * See accompanying file LICENSE.txt or copy at
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
5 * https://opensource.org/licenses/MIT
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
6 ***/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
7
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
8 #ifndef SHA1DC_NO_STANDARD_INCLUDES
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
9 #include <string.h>
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
10 #include <memory.h>
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
11 #include <stdio.h>
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
12 #include <stdlib.h>
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
13 #ifdef __unix__
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
14 #include <sys/types.h> /* make sure macros like _BIG_ENDIAN visible */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
15 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
16 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
17
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
18 #ifdef SHA1DC_CUSTOM_INCLUDE_SHA1_C
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
19 #include SHA1DC_CUSTOM_INCLUDE_SHA1_C
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
20 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
21
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
22 #ifndef SHA1DC_INIT_SAFE_HASH_DEFAULT
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
23 #define SHA1DC_INIT_SAFE_HASH_DEFAULT 1
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
24 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
25
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
26 #include "sha1.h"
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
27 #include "ubc_check.h"
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
28
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
29 #if (defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
30 defined(i386) || defined(__i386) || defined(__i386__) || defined(__i486__) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
31 defined(__i586__) || defined(__i686__) || defined(_M_IX86) || defined(__X86__) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
32 defined(_X86_) || defined(__THW_INTEL__) || defined(__I86__) || defined(__INTEL__) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
33 defined(__386) || defined(_M_X64) || defined(_M_AMD64))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
34 #define SHA1DC_ON_INTEL_LIKE_PROCESSOR
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
35 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
36
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
37 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
38 Because Little-Endian architectures are most common,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
39 we only set SHA1DC_BIGENDIAN if one of these conditions is met.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
40 Note that all MSFT platforms are little endian,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
41 so none of these will be defined under the MSC compiler.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
42 If you are compiling on a big endian platform and your compiler does not define one of these,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
43 you will have to add whatever macros your tool chain defines to indicate Big-Endianness.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
44 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
45
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
46 #if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
47 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
48 * Should detect Big Endian under GCC since at least 4.6.0 (gcc svn
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
49 * rev #165881). See
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
50 * https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
51 *
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
52 * This also works under clang since 3.2, it copied the GCC-ism. See
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
53 * clang.git's 3b198a97d2 ("Preprocessor: add __BYTE_ORDER__
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
54 * predefined macro", 2012-07-27)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
55 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
56 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
57 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
58 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
59
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
60 /* Not under GCC-alike */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
61 #elif defined(__BYTE_ORDER) && defined(__BIG_ENDIAN)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
62 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
63 * Should detect Big Endian under glibc.git since 14245eb70e ("entered
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
64 * into RCS", 1992-11-25). Defined in <endian.h> which will have been
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
65 * brought in by standard headers. See glibc.git and
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
66 * https://sourceforge.net/p/predef/wiki/Endianness/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
67 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
68 #if __BYTE_ORDER == __BIG_ENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
69 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
70 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
71
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
72 /* Not under GCC-alike or glibc */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
73 #elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
74 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
75 * *BSD and newlib (embeded linux, cygwin, etc).
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
76 * the defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN) part prevents
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
77 * this condition from matching with Solaris/sparc.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
78 * (Solaris defines only one endian macro)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
79 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
80 #if _BYTE_ORDER == _BIG_ENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
81 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
82 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
83
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
84 /* Not under GCC-alike or glibc or *BSD or newlib */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
85 #elif (defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
86 defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
87 defined(__sparc))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
88 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
89 * Should define Big Endian for a whitelist of known processors. See
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
90 * https://sourceforge.net/p/predef/wiki/Endianness/ and
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
91 * http://www.oracle.com/technetwork/server-storage/solaris/portingtosolaris-138514.html
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
92 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
93 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
94
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
95 /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
96 #elif (defined(_AIX) || defined(__hpux))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
97
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
98 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
99 * Defines Big Endian on a whitelist of OSs that are known to be Big
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
100 * Endian-only. See
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
101 * https://public-inbox.org/git/93056823-2740-d072-1ebd-46b440b33d7e@felt.demon.nl/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
102 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
103 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
104
50448
a0e39f5bb7cd sha1dc: Make sure SHA1DC_BIGENDIAN is set on Darwin/PowerPC
Sevan Janiyan <venture37@geeklan.co.uk>
parents: 44057
diff changeset
105 #elif (defined(__APPLE__) && defined(__BIG_ENDIAN__) && !defined(SHA1DC_BIGENDIAN))
a0e39f5bb7cd sha1dc: Make sure SHA1DC_BIGENDIAN is set on Darwin/PowerPC
Sevan Janiyan <venture37@geeklan.co.uk>
parents: 44057
diff changeset
106 /* older gcc compilers which are the default on Apple PPC do not define __BYTE_ORDER__ */
a0e39f5bb7cd sha1dc: Make sure SHA1DC_BIGENDIAN is set on Darwin/PowerPC
Sevan Janiyan <venture37@geeklan.co.uk>
parents: 44057
diff changeset
107 #define SHA1DC_BIGENDIAN
a0e39f5bb7cd sha1dc: Make sure SHA1DC_BIGENDIAN is set on Darwin/PowerPC
Sevan Janiyan <venture37@geeklan.co.uk>
parents: 44057
diff changeset
108
44057
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
109 /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
110 #elif defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
111 /*
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
112 * As a last resort before we do anything else we're not 100% sure
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
113 * about below, we blacklist specific processors here. We could add
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
114 * more, see e.g. https://wiki.debian.org/ArchitectureSpecificsMemo
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
115 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
116 #else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> or <processor blacklist> */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
117
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
118 /* We do nothing more here for now */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
119 /*#error "Uncomment this to see if you fall through all the detection"*/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
120
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
121 #endif /* Big Endian detection */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
122
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
123 #if (defined(SHA1DC_FORCE_LITTLEENDIAN) && defined(SHA1DC_BIGENDIAN))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
124 #undef SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
125 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
126 #if (defined(SHA1DC_FORCE_BIGENDIAN) && !defined(SHA1DC_BIGENDIAN))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
127 #define SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
128 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
129 /*ENDIANNESS SELECTION*/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
130
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
131 #ifndef SHA1DC_FORCE_ALIGNED_ACCESS
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
132 #if defined(SHA1DC_FORCE_UNALIGNED_ACCESS) || defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
133 #define SHA1DC_ALLOW_UNALIGNED_ACCESS
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
134 #endif /*UNALIGNED ACCESS DETECTION*/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
135 #endif /*FORCE ALIGNED ACCESS*/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
136
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
137 #define rotate_right(x,n) (((x)>>(n))|((x)<<(32-(n))))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
138 #define rotate_left(x,n) (((x)<<(n))|((x)>>(32-(n))))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
139
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
140 #define sha1_bswap32(x) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
141 {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
142
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
143 #define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
144
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
145 #ifdef SHA1DC_BIGENDIAN
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
146 #define sha1_load(m, t, temp) { temp = m[t]; }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
147 #else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
148 #define sha1_load(m, t, temp) { temp = m[t]; sha1_bswap32(temp); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
149 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
150
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
151 #define sha1_store(W, t, x) *(volatile uint32_t *)&W[t] = x
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
152
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
153 #define sha1_f1(b,c,d) ((d)^((b)&((c)^(d))))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
154 #define sha1_f2(b,c,d) ((b)^(c)^(d))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
155 #define sha1_f3(b,c,d) (((b)&(c))+((d)&((b)^(c))))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
156 #define sha1_f4(b,c,d) ((b)^(c)^(d))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
157
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
158 #define HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
159 { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
160 #define HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
161 { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
162 #define HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
163 { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
164 #define HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
165 { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
166
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
167 #define HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
168 { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
169 #define HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
170 { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
171 #define HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
172 { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
173 #define HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, m, t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
174 { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
175
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
176 #define SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, t, temp) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
177 {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
178
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
179 #define SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(a, b, c, d, e, W, t, temp) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
180 {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
181
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
182 #define SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, t, temp) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
183 {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
184
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
185 #define SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, t, temp) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
186 {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
187
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
188 #define SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, t, temp) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
189 {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
190
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
191
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
192 #define SHA1_STORE_STATE(i) states[i][0] = a; states[i][1] = b; states[i][2] = c; states[i][3] = d; states[i][4] = e;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
193
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
194 #ifdef BUILDNOCOLLDETECTSHA1COMPRESSION
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
195 void sha1_compression(uint32_t ihv[5], const uint32_t m[16])
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
196 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
197 uint32_t W[80];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
198 uint32_t a,b,c,d,e;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
199 unsigned i;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
200
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
201 memcpy(W, m, 16 * 4);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
202 for (i = 16; i < 80; ++i)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
203 W[i] = sha1_mix(W, i);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
204
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
205 a = ihv[0]; b = ihv[1]; c = ihv[2]; d = ihv[3]; e = ihv[4];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
206
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
207 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 0);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
208 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 1);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
209 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 2);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
210 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 3);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
211 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 4);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
212 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 5);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
213 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 6);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
214 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 7);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
215 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
216 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 9);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
217 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 10);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
218 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 11);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
219 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 12);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
220 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 13);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
221 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 14);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
222 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 15);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
223 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
224 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 17);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
225 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 18);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
226 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 19);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
227
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
228 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 20);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
229 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 21);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
230 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 22);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
231 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 23);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
232 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
233 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 25);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
234 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 26);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
235 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 27);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
236 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 28);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
237 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 29);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
238 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 30);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
239 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 31);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
240 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 32);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
241 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 33);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
242 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 34);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
243 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 35);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
244 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 36);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
245 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 37);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
246 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 38);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
247 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 39);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
248
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
249 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 40);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
250 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 41);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
251 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 42);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
252 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 43);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
253 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 44);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
254 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 45);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
255 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 46);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
256 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 47);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
257 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 48);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
258 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 49);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
259 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 50);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
260 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 51);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
261 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 52);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
262 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 53);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
263 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 54);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
264 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 55);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
265 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 56);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
266 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 57);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
267 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 58);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
268 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 59);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
269
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
270 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 60);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
271 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 61);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
272 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 62);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
273 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 63);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
274 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 64);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
275 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 65);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
276 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 66);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
277 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 67);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
278 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 68);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
279 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 69);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
280 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 70);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
281 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 71);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
282 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 72);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
283 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 73);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
284 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 74);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
285 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 75);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
286 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 76);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
287 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 77);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
288 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 78);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
289 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 79);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
290
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
291 ihv[0] += a; ihv[1] += b; ihv[2] += c; ihv[3] += d; ihv[4] += e;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
292 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
293 #endif /*BUILDNOCOLLDETECTSHA1COMPRESSION*/
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
294
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
295
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
296 static void sha1_compression_W(uint32_t ihv[5], const uint32_t W[80])
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
297 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
298 uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
299
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
300 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 0);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
301 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 1);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
302 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 2);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
303 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 3);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
304 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 4);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
305 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 5);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
306 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 6);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
307 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 7);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
308 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
309 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 9);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
310 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 10);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
311 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 11);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
312 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 12);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
313 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 13);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
314 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 14);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
315 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 15);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
316 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
317 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 17);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
318 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 18);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
319 HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 19);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
320
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
321 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 20);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
322 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 21);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
323 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 22);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
324 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 23);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
325 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
326 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 25);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
327 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 26);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
328 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 27);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
329 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 28);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
330 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 29);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
331 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 30);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
332 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 31);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
333 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 32);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
334 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 33);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
335 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 34);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
336 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 35);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
337 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 36);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
338 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 37);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
339 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 38);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
340 HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 39);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
341
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
342 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 40);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
343 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 41);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
344 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 42);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
345 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 43);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
346 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 44);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
347 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 45);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
348 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 46);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
349 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 47);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
350 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 48);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
351 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 49);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
352 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 50);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
353 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 51);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
354 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 52);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
355 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 53);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
356 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 54);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
357 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 55);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
358 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 56);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
359 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 57);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
360 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 58);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
361 HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 59);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
362
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
363 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 60);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
364 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 61);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
365 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 62);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
366 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 63);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
367 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 64);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
368 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 65);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
369 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 66);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
370 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 67);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
371 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 68);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
372 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 69);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
373 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 70);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
374 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 71);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
375 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 72);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
376 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 73);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
377 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 74);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
378 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 75);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
379 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 76);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
380 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 77);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
381 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 78);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
382 HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 79);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
383
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
384 ihv[0] += a; ihv[1] += b; ihv[2] += c; ihv[3] += d; ihv[4] += e;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
385 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
386
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
387
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
388
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
389 void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
390 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
391 uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
392 uint32_t temp;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
393
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
394 #ifdef DOSTORESTATE00
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
395 SHA1_STORE_STATE(0)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
396 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
397 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 0, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
398
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
399 #ifdef DOSTORESTATE01
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
400 SHA1_STORE_STATE(1)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
401 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
402 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 1, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
403
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
404 #ifdef DOSTORESTATE02
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
405 SHA1_STORE_STATE(2)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
406 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
407 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 2, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
408
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
409 #ifdef DOSTORESTATE03
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
410 SHA1_STORE_STATE(3)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
411 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
412 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 3, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
413
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
414 #ifdef DOSTORESTATE04
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
415 SHA1_STORE_STATE(4)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
416 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
417 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 4, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
418
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
419 #ifdef DOSTORESTATE05
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
420 SHA1_STORE_STATE(5)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
421 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
422 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 5, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
423
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
424 #ifdef DOSTORESTATE06
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
425 SHA1_STORE_STATE(6)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
426 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
427 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 6, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
428
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
429 #ifdef DOSTORESTATE07
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
430 SHA1_STORE_STATE(7)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
431 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
432 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 7, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
433
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
434 #ifdef DOSTORESTATE08
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
435 SHA1_STORE_STATE(8)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
436 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
437 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 8, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
438
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
439 #ifdef DOSTORESTATE09
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
440 SHA1_STORE_STATE(9)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
441 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
442 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 9, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
443
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
444 #ifdef DOSTORESTATE10
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
445 SHA1_STORE_STATE(10)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
446 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
447 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 10, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
448
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
449 #ifdef DOSTORESTATE11
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
450 SHA1_STORE_STATE(11)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
451 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
452 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 11, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
453
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
454 #ifdef DOSTORESTATE12
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
455 SHA1_STORE_STATE(12)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
456 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
457 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 12, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
458
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
459 #ifdef DOSTORESTATE13
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
460 SHA1_STORE_STATE(13)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
461 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
462 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 13, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
463
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
464 #ifdef DOSTORESTATE14
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
465 SHA1_STORE_STATE(14)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
466 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
467 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 14, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
468
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
469 #ifdef DOSTORESTATE15
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
470 SHA1_STORE_STATE(15)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
471 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
472 SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 15, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
473
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
474 #ifdef DOSTORESTATE16
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
475 SHA1_STORE_STATE(16)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
476 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
477 SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(e, a, b, c, d, W, 16, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
478
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
479 #ifdef DOSTORESTATE17
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
480 SHA1_STORE_STATE(17)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
481 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
482 SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(d, e, a, b, c, W, 17, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
483
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
484 #ifdef DOSTORESTATE18
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
485 SHA1_STORE_STATE(18)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
486 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
487 SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(c, d, e, a, b, W, 18, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
488
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
489 #ifdef DOSTORESTATE19
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
490 SHA1_STORE_STATE(19)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
491 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
492 SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(b, c, d, e, a, W, 19, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
493
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
494
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
495
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
496 #ifdef DOSTORESTATE20
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
497 SHA1_STORE_STATE(20)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
498 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
499 SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 20, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
500
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
501 #ifdef DOSTORESTATE21
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
502 SHA1_STORE_STATE(21)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
503 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
504 SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 21, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
505
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
506 #ifdef DOSTORESTATE22
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
507 SHA1_STORE_STATE(22)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
508 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
509 SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 22, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
510
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
511 #ifdef DOSTORESTATE23
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
512 SHA1_STORE_STATE(23)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
513 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
514 SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 23, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
515
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
516 #ifdef DOSTORESTATE24
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
517 SHA1_STORE_STATE(24)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
518 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
519 SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 24, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
520
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
521 #ifdef DOSTORESTATE25
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
522 SHA1_STORE_STATE(25)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
523 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
524 SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 25, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
525
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
526 #ifdef DOSTORESTATE26
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
527 SHA1_STORE_STATE(26)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
528 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
529 SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 26, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
530
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
531 #ifdef DOSTORESTATE27
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
532 SHA1_STORE_STATE(27)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
533 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
534 SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 27, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
535
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
536 #ifdef DOSTORESTATE28
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
537 SHA1_STORE_STATE(28)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
538 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
539 SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 28, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
540
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
541 #ifdef DOSTORESTATE29
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
542 SHA1_STORE_STATE(29)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
543 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
544 SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 29, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
545
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
546 #ifdef DOSTORESTATE30
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
547 SHA1_STORE_STATE(30)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
548 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
549 SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 30, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
550
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
551 #ifdef DOSTORESTATE31
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
552 SHA1_STORE_STATE(31)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
553 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
554 SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 31, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
555
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
556 #ifdef DOSTORESTATE32
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
557 SHA1_STORE_STATE(32)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
558 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
559 SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 32, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
560
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
561 #ifdef DOSTORESTATE33
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
562 SHA1_STORE_STATE(33)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
563 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
564 SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 33, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
565
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
566 #ifdef DOSTORESTATE34
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
567 SHA1_STORE_STATE(34)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
568 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
569 SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 34, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
570
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
571 #ifdef DOSTORESTATE35
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
572 SHA1_STORE_STATE(35)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
573 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
574 SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 35, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
575
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
576 #ifdef DOSTORESTATE36
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
577 SHA1_STORE_STATE(36)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
578 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
579 SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 36, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
580
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
581 #ifdef DOSTORESTATE37
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
582 SHA1_STORE_STATE(37)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
583 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
584 SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 37, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
585
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
586 #ifdef DOSTORESTATE38
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
587 SHA1_STORE_STATE(38)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
588 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
589 SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 38, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
590
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
591 #ifdef DOSTORESTATE39
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
592 SHA1_STORE_STATE(39)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
593 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
594 SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 39, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
595
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
596
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
597
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
598 #ifdef DOSTORESTATE40
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
599 SHA1_STORE_STATE(40)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
600 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
601 SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 40, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
602
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
603 #ifdef DOSTORESTATE41
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
604 SHA1_STORE_STATE(41)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
605 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
606 SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 41, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
607
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
608 #ifdef DOSTORESTATE42
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
609 SHA1_STORE_STATE(42)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
610 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
611 SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 42, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
612
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
613 #ifdef DOSTORESTATE43
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
614 SHA1_STORE_STATE(43)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
615 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
616 SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 43, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
617
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
618 #ifdef DOSTORESTATE44
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
619 SHA1_STORE_STATE(44)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
620 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
621 SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 44, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
622
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
623 #ifdef DOSTORESTATE45
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
624 SHA1_STORE_STATE(45)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
625 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
626 SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 45, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
627
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
628 #ifdef DOSTORESTATE46
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
629 SHA1_STORE_STATE(46)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
630 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
631 SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 46, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
632
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
633 #ifdef DOSTORESTATE47
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
634 SHA1_STORE_STATE(47)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
635 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
636 SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 47, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
637
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
638 #ifdef DOSTORESTATE48
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
639 SHA1_STORE_STATE(48)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
640 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
641 SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 48, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
642
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
643 #ifdef DOSTORESTATE49
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
644 SHA1_STORE_STATE(49)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
645 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
646 SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 49, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
647
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
648 #ifdef DOSTORESTATE50
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
649 SHA1_STORE_STATE(50)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
650 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
651 SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 50, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
652
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
653 #ifdef DOSTORESTATE51
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
654 SHA1_STORE_STATE(51)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
655 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
656 SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 51, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
657
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
658 #ifdef DOSTORESTATE52
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
659 SHA1_STORE_STATE(52)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
660 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
661 SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 52, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
662
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
663 #ifdef DOSTORESTATE53
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
664 SHA1_STORE_STATE(53)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
665 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
666 SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 53, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
667
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
668 #ifdef DOSTORESTATE54
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
669 SHA1_STORE_STATE(54)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
670 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
671 SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 54, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
672
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
673 #ifdef DOSTORESTATE55
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
674 SHA1_STORE_STATE(55)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
675 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
676 SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 55, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
677
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
678 #ifdef DOSTORESTATE56
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
679 SHA1_STORE_STATE(56)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
680 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
681 SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 56, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
682
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
683 #ifdef DOSTORESTATE57
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
684 SHA1_STORE_STATE(57)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
685 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
686 SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 57, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
687
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
688 #ifdef DOSTORESTATE58
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
689 SHA1_STORE_STATE(58)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
690 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
691 SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 58, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
692
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
693 #ifdef DOSTORESTATE59
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
694 SHA1_STORE_STATE(59)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
695 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
696 SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 59, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
697
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
698
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
699
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
700
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
701 #ifdef DOSTORESTATE60
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
702 SHA1_STORE_STATE(60)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
703 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
704 SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 60, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
705
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
706 #ifdef DOSTORESTATE61
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
707 SHA1_STORE_STATE(61)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
708 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
709 SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 61, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
710
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
711 #ifdef DOSTORESTATE62
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
712 SHA1_STORE_STATE(62)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
713 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
714 SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 62, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
715
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
716 #ifdef DOSTORESTATE63
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
717 SHA1_STORE_STATE(63)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
718 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
719 SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 63, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
720
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
721 #ifdef DOSTORESTATE64
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
722 SHA1_STORE_STATE(64)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
723 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
724 SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 64, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
725
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
726 #ifdef DOSTORESTATE65
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
727 SHA1_STORE_STATE(65)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
728 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
729 SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 65, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
730
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
731 #ifdef DOSTORESTATE66
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
732 SHA1_STORE_STATE(66)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
733 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
734 SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 66, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
735
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
736 #ifdef DOSTORESTATE67
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
737 SHA1_STORE_STATE(67)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
738 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
739 SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 67, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
740
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
741 #ifdef DOSTORESTATE68
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
742 SHA1_STORE_STATE(68)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
743 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
744 SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 68, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
745
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
746 #ifdef DOSTORESTATE69
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
747 SHA1_STORE_STATE(69)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
748 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
749 SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 69, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
750
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
751 #ifdef DOSTORESTATE70
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
752 SHA1_STORE_STATE(70)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
753 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
754 SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 70, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
755
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
756 #ifdef DOSTORESTATE71
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
757 SHA1_STORE_STATE(71)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
758 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
759 SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 71, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
760
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
761 #ifdef DOSTORESTATE72
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
762 SHA1_STORE_STATE(72)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
763 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
764 SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 72, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
765
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
766 #ifdef DOSTORESTATE73
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
767 SHA1_STORE_STATE(73)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
768 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
769 SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 73, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
770
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
771 #ifdef DOSTORESTATE74
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
772 SHA1_STORE_STATE(74)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
773 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
774 SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 74, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
775
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
776 #ifdef DOSTORESTATE75
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
777 SHA1_STORE_STATE(75)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
778 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
779 SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 75, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
780
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
781 #ifdef DOSTORESTATE76
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
782 SHA1_STORE_STATE(76)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
783 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
784 SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 76, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
785
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
786 #ifdef DOSTORESTATE77
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
787 SHA1_STORE_STATE(77)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
788 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
789 SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 77, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
790
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
791 #ifdef DOSTORESTATE78
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
792 SHA1_STORE_STATE(78)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
793 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
794 SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 78, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
795
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
796 #ifdef DOSTORESTATE79
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
797 SHA1_STORE_STATE(79)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
798 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
799 SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 79, temp);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
800
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
801
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
802
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
803 ihv[0] += a; ihv[1] += b; ihv[2] += c; ihv[3] += d; ihv[4] += e;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
804 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
805
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
806
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
807
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
808
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
809 #define SHA1_RECOMPRESS(t) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
810 static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
811 { \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
812 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
813 if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
814 if (t > 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
815 if (t > 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
816 if (t > 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
817 if (t > 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
818 if (t > 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
819 if (t > 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
820 if (t > 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
821 if (t > 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
822 if (t > 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
823 if (t > 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
824 if (t > 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
825 if (t > 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
826 if (t > 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
827 if (t > 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
828 if (t > 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
829 if (t > 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
830 if (t > 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
831 if (t > 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
832 if (t > 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
833 if (t > 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
834 if (t > 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
835 if (t > 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
836 if (t > 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
837 if (t > 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
838 if (t > 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
839 if (t > 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
840 if (t > 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
841 if (t > 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
842 if (t > 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
843 if (t > 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
844 if (t > 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
845 if (t > 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
846 if (t > 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
847 if (t > 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
848 if (t > 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
849 if (t > 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
850 if (t > 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
851 if (t > 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
852 if (t > 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
853 if (t > 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
854 if (t > 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
855 if (t > 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
856 if (t > 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
857 if (t > 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
858 if (t > 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
859 if (t > 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
860 if (t > 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
861 if (t > 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
862 if (t > 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
863 if (t > 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
864 if (t > 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
865 if (t > 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
866 if (t > 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
867 if (t > 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
868 if (t > 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
869 if (t > 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
870 if (t > 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
871 if (t > 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
872 if (t > 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
873 if (t > 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
874 if (t > 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
875 if (t > 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
876 if (t > 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
877 if (t > 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
878 if (t > 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
879 if (t > 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
880 if (t > 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
881 if (t > 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
882 if (t > 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
883 if (t > 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
884 if (t > 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
885 if (t > 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
886 if (t > 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
887 if (t > 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
888 if (t > 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
889 if (t > 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
890 if (t > 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
891 if (t > 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
892 if (t > 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
893 ihvin[0] = a; ihvin[1] = b; ihvin[2] = c; ihvin[3] = d; ihvin[4] = e; \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
894 a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
895 if (t <= 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
896 if (t <= 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
897 if (t <= 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
898 if (t <= 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
899 if (t <= 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
900 if (t <= 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
901 if (t <= 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
902 if (t <= 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
903 if (t <= 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
904 if (t <= 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
905 if (t <= 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
906 if (t <= 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
907 if (t <= 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
908 if (t <= 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
909 if (t <= 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
910 if (t <= 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
911 if (t <= 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
912 if (t <= 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
913 if (t <= 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
914 if (t <= 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
915 if (t <= 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
916 if (t <= 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
917 if (t <= 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
918 if (t <= 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
919 if (t <= 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
920 if (t <= 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
921 if (t <= 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
922 if (t <= 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
923 if (t <= 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
924 if (t <= 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
925 if (t <= 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
926 if (t <= 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
927 if (t <= 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
928 if (t <= 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
929 if (t <= 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
930 if (t <= 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
931 if (t <= 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
932 if (t <= 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
933 if (t <= 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
934 if (t <= 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
935 if (t <= 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
936 if (t <= 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
937 if (t <= 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
938 if (t <= 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
939 if (t <= 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
940 if (t <= 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
941 if (t <= 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
942 if (t <= 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
943 if (t <= 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
944 if (t <= 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
945 if (t <= 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
946 if (t <= 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
947 if (t <= 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
948 if (t <= 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
949 if (t <= 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
950 if (t <= 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
951 if (t <= 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
952 if (t <= 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
953 if (t <= 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
954 if (t <= 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
955 if (t <= 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
956 if (t <= 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
957 if (t <= 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
958 if (t <= 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
959 if (t <= 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
960 if (t <= 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
961 if (t <= 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
962 if (t <= 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
963 if (t <= 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
964 if (t <= 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
965 if (t <= 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
966 if (t <= 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
967 if (t <= 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
968 if (t <= 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
969 if (t <= 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
970 if (t <= 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
971 if (t <= 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
972 if (t <= 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
973 if (t <= 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
974 if (t <= 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79); \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
975 ihvout[0] = ihvin[0] + a; ihvout[1] = ihvin[1] + b; ihvout[2] = ihvin[2] + c; ihvout[3] = ihvin[3] + d; ihvout[4] = ihvin[4] + e; \
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
976 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
977
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
978 #ifdef _MSC_VER
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
979 #pragma warning(push)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
980 #pragma warning(disable: 4127) /* Compiler complains about the checks in the above macro being constant. */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
981 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
982
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
983 #ifdef DOSTORESTATE0
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
984 SHA1_RECOMPRESS(0)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
985 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
986
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
987 #ifdef DOSTORESTATE1
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
988 SHA1_RECOMPRESS(1)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
989 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
990
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
991 #ifdef DOSTORESTATE2
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
992 SHA1_RECOMPRESS(2)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
993 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
994
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
995 #ifdef DOSTORESTATE3
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
996 SHA1_RECOMPRESS(3)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
997 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
998
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
999 #ifdef DOSTORESTATE4
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1000 SHA1_RECOMPRESS(4)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1001 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1002
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1003 #ifdef DOSTORESTATE5
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1004 SHA1_RECOMPRESS(5)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1005 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1006
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1007 #ifdef DOSTORESTATE6
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1008 SHA1_RECOMPRESS(6)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1009 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1010
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1011 #ifdef DOSTORESTATE7
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1012 SHA1_RECOMPRESS(7)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1013 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1014
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1015 #ifdef DOSTORESTATE8
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1016 SHA1_RECOMPRESS(8)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1017 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1018
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1019 #ifdef DOSTORESTATE9
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1020 SHA1_RECOMPRESS(9)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1021 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1022
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1023 #ifdef DOSTORESTATE10
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1024 SHA1_RECOMPRESS(10)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1025 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1026
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1027 #ifdef DOSTORESTATE11
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1028 SHA1_RECOMPRESS(11)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1029 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1030
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1031 #ifdef DOSTORESTATE12
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1032 SHA1_RECOMPRESS(12)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1033 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1034
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1035 #ifdef DOSTORESTATE13
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1036 SHA1_RECOMPRESS(13)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1037 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1038
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1039 #ifdef DOSTORESTATE14
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1040 SHA1_RECOMPRESS(14)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1041 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1042
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1043 #ifdef DOSTORESTATE15
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1044 SHA1_RECOMPRESS(15)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1045 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1046
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1047 #ifdef DOSTORESTATE16
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1048 SHA1_RECOMPRESS(16)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1049 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1050
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1051 #ifdef DOSTORESTATE17
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1052 SHA1_RECOMPRESS(17)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1053 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1054
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1055 #ifdef DOSTORESTATE18
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1056 SHA1_RECOMPRESS(18)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1057 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1058
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1059 #ifdef DOSTORESTATE19
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1060 SHA1_RECOMPRESS(19)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1061 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1062
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1063 #ifdef DOSTORESTATE20
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1064 SHA1_RECOMPRESS(20)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1065 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1066
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1067 #ifdef DOSTORESTATE21
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1068 SHA1_RECOMPRESS(21)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1069 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1070
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1071 #ifdef DOSTORESTATE22
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1072 SHA1_RECOMPRESS(22)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1073 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1074
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1075 #ifdef DOSTORESTATE23
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1076 SHA1_RECOMPRESS(23)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1077 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1078
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1079 #ifdef DOSTORESTATE24
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1080 SHA1_RECOMPRESS(24)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1081 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1082
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1083 #ifdef DOSTORESTATE25
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1084 SHA1_RECOMPRESS(25)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1085 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1086
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1087 #ifdef DOSTORESTATE26
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1088 SHA1_RECOMPRESS(26)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1089 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1090
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1091 #ifdef DOSTORESTATE27
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1092 SHA1_RECOMPRESS(27)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1093 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1094
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1095 #ifdef DOSTORESTATE28
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1096 SHA1_RECOMPRESS(28)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1097 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1098
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1099 #ifdef DOSTORESTATE29
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1100 SHA1_RECOMPRESS(29)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1101 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1102
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1103 #ifdef DOSTORESTATE30
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1104 SHA1_RECOMPRESS(30)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1105 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1106
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1107 #ifdef DOSTORESTATE31
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1108 SHA1_RECOMPRESS(31)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1109 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1110
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1111 #ifdef DOSTORESTATE32
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1112 SHA1_RECOMPRESS(32)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1113 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1114
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1115 #ifdef DOSTORESTATE33
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1116 SHA1_RECOMPRESS(33)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1117 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1118
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1119 #ifdef DOSTORESTATE34
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1120 SHA1_RECOMPRESS(34)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1121 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1122
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1123 #ifdef DOSTORESTATE35
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1124 SHA1_RECOMPRESS(35)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1125 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1126
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1127 #ifdef DOSTORESTATE36
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1128 SHA1_RECOMPRESS(36)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1129 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1130
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1131 #ifdef DOSTORESTATE37
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1132 SHA1_RECOMPRESS(37)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1133 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1134
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1135 #ifdef DOSTORESTATE38
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1136 SHA1_RECOMPRESS(38)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1137 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1138
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1139 #ifdef DOSTORESTATE39
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1140 SHA1_RECOMPRESS(39)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1141 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1142
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1143 #ifdef DOSTORESTATE40
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1144 SHA1_RECOMPRESS(40)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1145 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1146
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1147 #ifdef DOSTORESTATE41
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1148 SHA1_RECOMPRESS(41)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1149 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1150
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1151 #ifdef DOSTORESTATE42
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1152 SHA1_RECOMPRESS(42)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1153 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1154
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1155 #ifdef DOSTORESTATE43
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1156 SHA1_RECOMPRESS(43)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1157 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1158
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1159 #ifdef DOSTORESTATE44
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1160 SHA1_RECOMPRESS(44)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1161 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1162
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1163 #ifdef DOSTORESTATE45
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1164 SHA1_RECOMPRESS(45)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1165 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1166
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1167 #ifdef DOSTORESTATE46
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1168 SHA1_RECOMPRESS(46)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1169 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1170
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1171 #ifdef DOSTORESTATE47
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1172 SHA1_RECOMPRESS(47)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1173 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1174
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1175 #ifdef DOSTORESTATE48
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1176 SHA1_RECOMPRESS(48)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1177 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1178
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1179 #ifdef DOSTORESTATE49
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1180 SHA1_RECOMPRESS(49)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1181 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1182
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1183 #ifdef DOSTORESTATE50
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1184 SHA1_RECOMPRESS(50)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1185 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1186
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1187 #ifdef DOSTORESTATE51
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1188 SHA1_RECOMPRESS(51)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1189 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1190
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1191 #ifdef DOSTORESTATE52
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1192 SHA1_RECOMPRESS(52)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1193 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1194
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1195 #ifdef DOSTORESTATE53
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1196 SHA1_RECOMPRESS(53)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1197 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1198
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1199 #ifdef DOSTORESTATE54
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1200 SHA1_RECOMPRESS(54)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1201 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1202
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1203 #ifdef DOSTORESTATE55
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1204 SHA1_RECOMPRESS(55)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1205 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1206
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1207 #ifdef DOSTORESTATE56
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1208 SHA1_RECOMPRESS(56)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1209 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1210
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1211 #ifdef DOSTORESTATE57
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1212 SHA1_RECOMPRESS(57)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1213 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1214
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1215 #ifdef DOSTORESTATE58
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1216 SHA1_RECOMPRESS(58)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1217 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1218
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1219 #ifdef DOSTORESTATE59
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1220 SHA1_RECOMPRESS(59)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1221 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1222
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1223 #ifdef DOSTORESTATE60
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1224 SHA1_RECOMPRESS(60)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1225 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1226
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1227 #ifdef DOSTORESTATE61
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1228 SHA1_RECOMPRESS(61)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1229 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1230
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1231 #ifdef DOSTORESTATE62
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1232 SHA1_RECOMPRESS(62)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1233 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1234
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1235 #ifdef DOSTORESTATE63
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1236 SHA1_RECOMPRESS(63)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1237 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1238
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1239 #ifdef DOSTORESTATE64
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1240 SHA1_RECOMPRESS(64)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1241 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1242
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1243 #ifdef DOSTORESTATE65
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1244 SHA1_RECOMPRESS(65)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1245 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1246
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1247 #ifdef DOSTORESTATE66
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1248 SHA1_RECOMPRESS(66)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1249 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1250
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1251 #ifdef DOSTORESTATE67
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1252 SHA1_RECOMPRESS(67)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1253 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1254
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1255 #ifdef DOSTORESTATE68
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1256 SHA1_RECOMPRESS(68)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1257 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1258
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1259 #ifdef DOSTORESTATE69
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1260 SHA1_RECOMPRESS(69)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1261 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1262
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1263 #ifdef DOSTORESTATE70
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1264 SHA1_RECOMPRESS(70)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1265 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1266
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1267 #ifdef DOSTORESTATE71
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1268 SHA1_RECOMPRESS(71)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1269 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1270
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1271 #ifdef DOSTORESTATE72
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1272 SHA1_RECOMPRESS(72)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1273 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1274
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1275 #ifdef DOSTORESTATE73
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1276 SHA1_RECOMPRESS(73)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1277 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1278
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1279 #ifdef DOSTORESTATE74
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1280 SHA1_RECOMPRESS(74)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1281 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1282
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1283 #ifdef DOSTORESTATE75
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1284 SHA1_RECOMPRESS(75)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1285 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1286
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1287 #ifdef DOSTORESTATE76
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1288 SHA1_RECOMPRESS(76)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1289 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1290
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1291 #ifdef DOSTORESTATE77
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1292 SHA1_RECOMPRESS(77)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1293 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1294
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1295 #ifdef DOSTORESTATE78
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1296 SHA1_RECOMPRESS(78)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1297 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1298
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1299 #ifdef DOSTORESTATE79
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1300 SHA1_RECOMPRESS(79)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1301 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1302
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1303 #ifdef _MSC_VER
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1304 #pragma warning(pop)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1305 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1306
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1307 static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5])
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1308 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1309 switch (step)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1310 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1311 #ifdef DOSTORESTATE0
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1312 case 0:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1313 sha1recompress_fast_0(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1314 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1315 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1316 #ifdef DOSTORESTATE1
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1317 case 1:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1318 sha1recompress_fast_1(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1319 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1320 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1321 #ifdef DOSTORESTATE2
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1322 case 2:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1323 sha1recompress_fast_2(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1324 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1325 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1326 #ifdef DOSTORESTATE3
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1327 case 3:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1328 sha1recompress_fast_3(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1329 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1330 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1331 #ifdef DOSTORESTATE4
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1332 case 4:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1333 sha1recompress_fast_4(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1334 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1335 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1336 #ifdef DOSTORESTATE5
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1337 case 5:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1338 sha1recompress_fast_5(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1339 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1340 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1341 #ifdef DOSTORESTATE6
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1342 case 6:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1343 sha1recompress_fast_6(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1344 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1345 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1346 #ifdef DOSTORESTATE7
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1347 case 7:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1348 sha1recompress_fast_7(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1349 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1350 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1351 #ifdef DOSTORESTATE8
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1352 case 8:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1353 sha1recompress_fast_8(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1354 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1355 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1356 #ifdef DOSTORESTATE9
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1357 case 9:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1358 sha1recompress_fast_9(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1359 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1360 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1361 #ifdef DOSTORESTATE10
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1362 case 10:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1363 sha1recompress_fast_10(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1364 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1365 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1366 #ifdef DOSTORESTATE11
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1367 case 11:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1368 sha1recompress_fast_11(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1369 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1370 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1371 #ifdef DOSTORESTATE12
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1372 case 12:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1373 sha1recompress_fast_12(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1374 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1375 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1376 #ifdef DOSTORESTATE13
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1377 case 13:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1378 sha1recompress_fast_13(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1379 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1380 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1381 #ifdef DOSTORESTATE14
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1382 case 14:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1383 sha1recompress_fast_14(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1384 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1385 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1386 #ifdef DOSTORESTATE15
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1387 case 15:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1388 sha1recompress_fast_15(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1389 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1390 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1391 #ifdef DOSTORESTATE16
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1392 case 16:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1393 sha1recompress_fast_16(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1394 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1395 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1396 #ifdef DOSTORESTATE17
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1397 case 17:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1398 sha1recompress_fast_17(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1399 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1400 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1401 #ifdef DOSTORESTATE18
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1402 case 18:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1403 sha1recompress_fast_18(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1404 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1405 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1406 #ifdef DOSTORESTATE19
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1407 case 19:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1408 sha1recompress_fast_19(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1409 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1410 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1411 #ifdef DOSTORESTATE20
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1412 case 20:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1413 sha1recompress_fast_20(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1414 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1415 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1416 #ifdef DOSTORESTATE21
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1417 case 21:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1418 sha1recompress_fast_21(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1419 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1420 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1421 #ifdef DOSTORESTATE22
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1422 case 22:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1423 sha1recompress_fast_22(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1424 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1425 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1426 #ifdef DOSTORESTATE23
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1427 case 23:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1428 sha1recompress_fast_23(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1429 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1430 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1431 #ifdef DOSTORESTATE24
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1432 case 24:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1433 sha1recompress_fast_24(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1434 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1435 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1436 #ifdef DOSTORESTATE25
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1437 case 25:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1438 sha1recompress_fast_25(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1439 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1440 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1441 #ifdef DOSTORESTATE26
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1442 case 26:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1443 sha1recompress_fast_26(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1444 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1445 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1446 #ifdef DOSTORESTATE27
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1447 case 27:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1448 sha1recompress_fast_27(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1449 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1450 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1451 #ifdef DOSTORESTATE28
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1452 case 28:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1453 sha1recompress_fast_28(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1454 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1455 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1456 #ifdef DOSTORESTATE29
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1457 case 29:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1458 sha1recompress_fast_29(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1459 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1460 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1461 #ifdef DOSTORESTATE30
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1462 case 30:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1463 sha1recompress_fast_30(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1464 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1465 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1466 #ifdef DOSTORESTATE31
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1467 case 31:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1468 sha1recompress_fast_31(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1469 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1470 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1471 #ifdef DOSTORESTATE32
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1472 case 32:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1473 sha1recompress_fast_32(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1474 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1475 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1476 #ifdef DOSTORESTATE33
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1477 case 33:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1478 sha1recompress_fast_33(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1479 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1480 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1481 #ifdef DOSTORESTATE34
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1482 case 34:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1483 sha1recompress_fast_34(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1484 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1485 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1486 #ifdef DOSTORESTATE35
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1487 case 35:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1488 sha1recompress_fast_35(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1489 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1490 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1491 #ifdef DOSTORESTATE36
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1492 case 36:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1493 sha1recompress_fast_36(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1494 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1495 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1496 #ifdef DOSTORESTATE37
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1497 case 37:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1498 sha1recompress_fast_37(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1499 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1500 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1501 #ifdef DOSTORESTATE38
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1502 case 38:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1503 sha1recompress_fast_38(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1504 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1505 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1506 #ifdef DOSTORESTATE39
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1507 case 39:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1508 sha1recompress_fast_39(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1509 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1510 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1511 #ifdef DOSTORESTATE40
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1512 case 40:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1513 sha1recompress_fast_40(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1514 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1515 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1516 #ifdef DOSTORESTATE41
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1517 case 41:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1518 sha1recompress_fast_41(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1519 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1520 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1521 #ifdef DOSTORESTATE42
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1522 case 42:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1523 sha1recompress_fast_42(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1524 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1525 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1526 #ifdef DOSTORESTATE43
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1527 case 43:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1528 sha1recompress_fast_43(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1529 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1530 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1531 #ifdef DOSTORESTATE44
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1532 case 44:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1533 sha1recompress_fast_44(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1534 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1535 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1536 #ifdef DOSTORESTATE45
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1537 case 45:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1538 sha1recompress_fast_45(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1539 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1540 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1541 #ifdef DOSTORESTATE46
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1542 case 46:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1543 sha1recompress_fast_46(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1544 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1545 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1546 #ifdef DOSTORESTATE47
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1547 case 47:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1548 sha1recompress_fast_47(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1549 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1550 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1551 #ifdef DOSTORESTATE48
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1552 case 48:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1553 sha1recompress_fast_48(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1554 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1555 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1556 #ifdef DOSTORESTATE49
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1557 case 49:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1558 sha1recompress_fast_49(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1559 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1560 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1561 #ifdef DOSTORESTATE50
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1562 case 50:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1563 sha1recompress_fast_50(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1564 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1565 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1566 #ifdef DOSTORESTATE51
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1567 case 51:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1568 sha1recompress_fast_51(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1569 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1570 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1571 #ifdef DOSTORESTATE52
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1572 case 52:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1573 sha1recompress_fast_52(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1574 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1575 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1576 #ifdef DOSTORESTATE53
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1577 case 53:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1578 sha1recompress_fast_53(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1579 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1580 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1581 #ifdef DOSTORESTATE54
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1582 case 54:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1583 sha1recompress_fast_54(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1584 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1585 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1586 #ifdef DOSTORESTATE55
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1587 case 55:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1588 sha1recompress_fast_55(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1589 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1590 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1591 #ifdef DOSTORESTATE56
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1592 case 56:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1593 sha1recompress_fast_56(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1594 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1595 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1596 #ifdef DOSTORESTATE57
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1597 case 57:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1598 sha1recompress_fast_57(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1599 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1600 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1601 #ifdef DOSTORESTATE58
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1602 case 58:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1603 sha1recompress_fast_58(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1604 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1605 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1606 #ifdef DOSTORESTATE59
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1607 case 59:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1608 sha1recompress_fast_59(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1609 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1610 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1611 #ifdef DOSTORESTATE60
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1612 case 60:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1613 sha1recompress_fast_60(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1614 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1615 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1616 #ifdef DOSTORESTATE61
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1617 case 61:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1618 sha1recompress_fast_61(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1619 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1620 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1621 #ifdef DOSTORESTATE62
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1622 case 62:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1623 sha1recompress_fast_62(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1624 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1625 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1626 #ifdef DOSTORESTATE63
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1627 case 63:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1628 sha1recompress_fast_63(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1629 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1630 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1631 #ifdef DOSTORESTATE64
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1632 case 64:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1633 sha1recompress_fast_64(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1634 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1635 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1636 #ifdef DOSTORESTATE65
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1637 case 65:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1638 sha1recompress_fast_65(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1639 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1640 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1641 #ifdef DOSTORESTATE66
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1642 case 66:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1643 sha1recompress_fast_66(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1644 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1645 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1646 #ifdef DOSTORESTATE67
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1647 case 67:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1648 sha1recompress_fast_67(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1649 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1650 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1651 #ifdef DOSTORESTATE68
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1652 case 68:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1653 sha1recompress_fast_68(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1654 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1655 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1656 #ifdef DOSTORESTATE69
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1657 case 69:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1658 sha1recompress_fast_69(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1659 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1660 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1661 #ifdef DOSTORESTATE70
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1662 case 70:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1663 sha1recompress_fast_70(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1664 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1665 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1666 #ifdef DOSTORESTATE71
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1667 case 71:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1668 sha1recompress_fast_71(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1669 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1670 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1671 #ifdef DOSTORESTATE72
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1672 case 72:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1673 sha1recompress_fast_72(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1674 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1675 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1676 #ifdef DOSTORESTATE73
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1677 case 73:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1678 sha1recompress_fast_73(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1679 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1680 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1681 #ifdef DOSTORESTATE74
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1682 case 74:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1683 sha1recompress_fast_74(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1684 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1685 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1686 #ifdef DOSTORESTATE75
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1687 case 75:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1688 sha1recompress_fast_75(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1689 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1690 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1691 #ifdef DOSTORESTATE76
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1692 case 76:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1693 sha1recompress_fast_76(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1694 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1695 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1696 #ifdef DOSTORESTATE77
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1697 case 77:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1698 sha1recompress_fast_77(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1699 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1700 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1701 #ifdef DOSTORESTATE78
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1702 case 78:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1703 sha1recompress_fast_78(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1704 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1705 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1706 #ifdef DOSTORESTATE79
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1707 case 79:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1708 sha1recompress_fast_79(ihvin, ihvout, me2, state);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1709 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1710 #endif
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1711 default:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1712 abort();
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1713 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1714
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1715 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1716
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1717
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1718
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1719 static void sha1_process(SHA1_CTX* ctx, const uint32_t block[16])
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1720 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1721 unsigned i, j;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1722 uint32_t ubc_dv_mask[DVMASKSIZE] = { 0xFFFFFFFF };
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1723 uint32_t ihvtmp[5];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1724
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1725 ctx->ihv1[0] = ctx->ihv[0];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1726 ctx->ihv1[1] = ctx->ihv[1];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1727 ctx->ihv1[2] = ctx->ihv[2];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1728 ctx->ihv1[3] = ctx->ihv[3];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1729 ctx->ihv1[4] = ctx->ihv[4];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1730
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1731 sha1_compression_states(ctx->ihv, block, ctx->m1, ctx->states);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1732
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1733 if (ctx->detect_coll)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1734 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1735 if (ctx->ubc_check)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1736 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1737 ubc_check(ctx->m1, ubc_dv_mask);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1738 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1739
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1740 if (ubc_dv_mask[0] != 0)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1741 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1742 for (i = 0; sha1_dvs[i].dvType != 0; ++i)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1743 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1744 if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1745 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1746 for (j = 0; j < 80; ++j)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1747 ctx->m2[j] = ctx->m1[j] ^ sha1_dvs[i].dm[j];
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1748
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1749 sha1_recompression_step(sha1_dvs[i].testt, ctx->ihv2, ihvtmp, ctx->m2, ctx->states[sha1_dvs[i].testt]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1750
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1751 /* to verify SHA-1 collision detection code with collisions for reduced-step SHA-1 */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1752 if ((0 == ((ihvtmp[0] ^ ctx->ihv[0]) | (ihvtmp[1] ^ ctx->ihv[1]) | (ihvtmp[2] ^ ctx->ihv[2]) | (ihvtmp[3] ^ ctx->ihv[3]) | (ihvtmp[4] ^ ctx->ihv[4])))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1753 || (ctx->reduced_round_coll && 0==((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) | (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) | (ctx->ihv1[4] ^ ctx->ihv2[4]))))
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1754 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1755 ctx->found_collision = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1756
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1757 if (ctx->safe_hash)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1758 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1759 sha1_compression_W(ctx->ihv, ctx->m1);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1760 sha1_compression_W(ctx->ihv, ctx->m1);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1761 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1762
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1763 break;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1764 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1765 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1766 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1767 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1768 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1769 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1770
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1771 void SHA1DCInit(SHA1_CTX* ctx)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1772 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1773 ctx->total = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1774 ctx->ihv[0] = 0x67452301;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1775 ctx->ihv[1] = 0xEFCDAB89;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1776 ctx->ihv[2] = 0x98BADCFE;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1777 ctx->ihv[3] = 0x10325476;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1778 ctx->ihv[4] = 0xC3D2E1F0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1779 ctx->found_collision = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1780 ctx->safe_hash = SHA1DC_INIT_SAFE_HASH_DEFAULT;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1781 ctx->ubc_check = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1782 ctx->detect_coll = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1783 ctx->reduced_round_coll = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1784 ctx->callback = NULL;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1785 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1786
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1787 void SHA1DCSetSafeHash(SHA1_CTX* ctx, int safehash)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1788 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1789 if (safehash)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1790 ctx->safe_hash = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1791 else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1792 ctx->safe_hash = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1793 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1794
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1795
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1796 void SHA1DCSetUseUBC(SHA1_CTX* ctx, int ubc_check)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1797 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1798 if (ubc_check)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1799 ctx->ubc_check = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1800 else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1801 ctx->ubc_check = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1802 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1803
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1804 void SHA1DCSetUseDetectColl(SHA1_CTX* ctx, int detect_coll)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1805 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1806 if (detect_coll)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1807 ctx->detect_coll = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1808 else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1809 ctx->detect_coll = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1810 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1811
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1812 void SHA1DCSetDetectReducedRoundCollision(SHA1_CTX* ctx, int reduced_round_coll)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1813 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1814 if (reduced_round_coll)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1815 ctx->reduced_round_coll = 1;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1816 else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1817 ctx->reduced_round_coll = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1818 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1819
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1820 void SHA1DCSetCallback(SHA1_CTX* ctx, collision_block_callback callback)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1821 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1822 ctx->callback = callback;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1823 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1824
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1825 void SHA1DCUpdate(SHA1_CTX* ctx, const char* buf, size_t len)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1826 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1827 unsigned left, fill;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1828
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1829 if (len == 0)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1830 return;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1831
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1832 left = ctx->total & 63;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1833 fill = 64 - left;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1834
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1835 if (left && len >= fill)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1836 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1837 ctx->total += fill;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1838 memcpy(ctx->buffer + left, buf, fill);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1839 sha1_process(ctx, (uint32_t*)(ctx->buffer));
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1840 buf += fill;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1841 len -= fill;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1842 left = 0;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1843 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1844 while (len >= 64)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1845 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1846 ctx->total += 64;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1847
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1848 #if defined(SHA1DC_ALLOW_UNALIGNED_ACCESS)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1849 sha1_process(ctx, (uint32_t*)(buf));
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1850 #else
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1851 memcpy(ctx->buffer, buf, 64);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1852 sha1_process(ctx, (uint32_t*)(ctx->buffer));
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1853 #endif /* defined(SHA1DC_ALLOW_UNALIGNED_ACCESS) */
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1854 buf += 64;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1855 len -= 64;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1856 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1857 if (len > 0)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1858 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1859 ctx->total += len;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1860 memcpy(ctx->buffer + left, buf, len);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1861 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1862 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1863
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1864 static const unsigned char sha1_padding[64] =
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1865 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1866 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1867 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1868 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1869 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1870 };
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1871
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1872 int SHA1DCFinal(unsigned char output[20], SHA1_CTX *ctx)
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1873 {
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1874 uint32_t last = ctx->total & 63;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1875 uint32_t padn = (last < 56) ? (56 - last) : (120 - last);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1876 uint64_t total;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1877 SHA1DCUpdate(ctx, (const char*)(sha1_padding), padn);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1878
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1879 total = ctx->total - padn;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1880 total <<= 3;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1881 ctx->buffer[56] = (unsigned char)(total >> 56);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1882 ctx->buffer[57] = (unsigned char)(total >> 48);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1883 ctx->buffer[58] = (unsigned char)(total >> 40);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1884 ctx->buffer[59] = (unsigned char)(total >> 32);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1885 ctx->buffer[60] = (unsigned char)(total >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1886 ctx->buffer[61] = (unsigned char)(total >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1887 ctx->buffer[62] = (unsigned char)(total >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1888 ctx->buffer[63] = (unsigned char)(total);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1889 sha1_process(ctx, (uint32_t*)(ctx->buffer));
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1890 output[0] = (unsigned char)(ctx->ihv[0] >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1891 output[1] = (unsigned char)(ctx->ihv[0] >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1892 output[2] = (unsigned char)(ctx->ihv[0] >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1893 output[3] = (unsigned char)(ctx->ihv[0]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1894 output[4] = (unsigned char)(ctx->ihv[1] >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1895 output[5] = (unsigned char)(ctx->ihv[1] >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1896 output[6] = (unsigned char)(ctx->ihv[1] >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1897 output[7] = (unsigned char)(ctx->ihv[1]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1898 output[8] = (unsigned char)(ctx->ihv[2] >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1899 output[9] = (unsigned char)(ctx->ihv[2] >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1900 output[10] = (unsigned char)(ctx->ihv[2] >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1901 output[11] = (unsigned char)(ctx->ihv[2]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1902 output[12] = (unsigned char)(ctx->ihv[3] >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1903 output[13] = (unsigned char)(ctx->ihv[3] >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1904 output[14] = (unsigned char)(ctx->ihv[3] >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1905 output[15] = (unsigned char)(ctx->ihv[3]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1906 output[16] = (unsigned char)(ctx->ihv[4] >> 24);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1907 output[17] = (unsigned char)(ctx->ihv[4] >> 16);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1908 output[18] = (unsigned char)(ctx->ihv[4] >> 8);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1909 output[19] = (unsigned char)(ctx->ihv[4]);
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1910 return ctx->found_collision;
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1911 }
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1912
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1913 #ifdef SHA1DC_CUSTOM_TRAILING_INCLUDE_SHA1_C
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1914 #include SHA1DC_CUSTOM_TRAILING_INCLUDE_SHA1_C
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
1915 #endif