27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#define F3(x, y, z) (x ^ y ^ z)
#define F4(x, y, z) (y ^ (x | ~z))
/* This is the central step in the MD5 algorithm. */
#define MD5STEP(f, w, x, y, z, data, s) \
(w += f(x, y, z) + data, w = w << s | w >> (32 - s), w += x)
inline void
md5_transform(uint32_t buf[4], const uint32_t in[16])
{
register uint32_t a, b, c, d;
a = buf[0];
b = buf[1];
c = buf[2];
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#define F3(x, y, z) (x ^ y ^ z)
#define F4(x, y, z) (y ^ (x | ~z))
/* This is the central step in the MD5 algorithm. */
#define MD5STEP(f, w, x, y, z, data, s) \
(w += f(x, y, z) + data, w = w << s | w >> (32 - s), w += x)
static inline void
md5_transform(uint32_t buf[4], const uint32_t in[16])
{
register uint32_t a, b, c, d;
a = buf[0];
b = buf[1];
c = buf[2];
|
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
w = OF_ROL(w, 30);
typedef union {
uint8_t c[64];
uint32_t l[16];
} sha1_c64l16_t;
inline void
sha1_transform(uint32_t state[5], const uint8_t buffer[64])
{
uint32_t a, b, c, d, e;
uint8_t workspace[64];
sha1_c64l16_t *block;
block = (sha1_c64l16_t*)workspace;
|
|
|
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
w = OF_ROL(w, 30);
typedef union {
uint8_t c[64];
uint32_t l[16];
} sha1_c64l16_t;
static inline void
sha1_transform(uint32_t state[5], const uint8_t buffer[64])
{
uint32_t a, b, c, d, e;
uint8_t workspace[64];
sha1_c64l16_t *block;
block = (sha1_c64l16_t*)workspace;
|