Mercurial > dropbear
comparison libtomcrypt/src/hashes/md4.c @ 1437:871b18fd7065 fuzz
merge from main (libtommath/libtomcrypt/curve25510-donna updates)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 22:51:45 +0800 |
parents | f849a5ca2efc |
children | 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1432:41dca1e5ea34 | 1437:871b18fd7065 |
---|---|
4 * algorithms in a highly modular and flexible manner. | 4 * algorithms in a highly modular and flexible manner. |
5 * | 5 * |
6 * The library is free for all purposes without any express | 6 * The library is free for all purposes without any express |
7 * guarantee it works. | 7 * guarantee it works. |
8 * | 8 * |
9 * Tom St Denis, [email protected], http://libtomcrypt.com | 9 * Tom St Denis, [email protected], http://libtom.org |
10 */ | 10 */ |
11 #include "tomcrypt.h" | 11 #include "tomcrypt.h" |
12 | 12 |
13 /** | 13 /** |
14 @param md4.c | 14 @param md4.c |
15 Submitted by Dobes Vandermeer ([email protected]) | 15 Submitted by Dobes Vandermeer ([email protected]) |
16 */ | 16 */ |
17 | 17 |
18 #ifdef MD4 | 18 #ifdef LTC_MD4 |
19 | 19 |
20 const struct ltc_hash_descriptor md4_desc = | 20 const struct ltc_hash_descriptor md4_desc = |
21 { | 21 { |
22 "md4", | 22 "md4", |
23 6, | 23 6, |
46 #define S31 3 | 46 #define S31 3 |
47 #define S32 9 | 47 #define S32 9 |
48 #define S33 11 | 48 #define S33 11 |
49 #define S34 15 | 49 #define S34 15 |
50 | 50 |
51 /* F, G and H are basic MD4 functions. */ | 51 /* F, G and H are basic LTC_MD4 functions. */ |
52 #define F(x, y, z) (z ^ (x & (y ^ z))) | 52 #define F(x, y, z) (z ^ (x & (y ^ z))) |
53 #define G(x, y, z) ((x & y) | (z & (x | y))) | 53 #define G(x, y, z) ((x & y) | (z & (x | y))) |
54 #define H(x, y, z) ((x) ^ (y) ^ (z)) | 54 #define H(x, y, z) ((x) ^ (y) ^ (z)) |
55 | 55 |
56 /* ROTATE_LEFT rotates x left n bits. */ | 56 /* ROTATE_LEFT rotates x left n bits. */ |
300 | 300 |
301 #endif | 301 #endif |
302 | 302 |
303 | 303 |
304 | 304 |
305 /* $Source: /cvs/libtom/libtomcrypt/src/hashes/md4.c,v $ */ | 305 /* $Source$ */ |
306 /* $Revision: 1.8 $ */ | 306 /* $Revision$ */ |
307 /* $Date: 2006/11/01 09:28:17 $ */ | 307 /* $Date$ */ |