aboutsummaryrefslogtreecommitdiff
path: root/lib/hcrypto/md4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hcrypto/md4.c')
-rw-r--r--lib/hcrypto/md4.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/hcrypto/md4.c b/lib/hcrypto/md4.c
index 1a9f77fed250..2a803ce0d360 100644
--- a/lib/hcrypto/md4.c
+++ b/lib/hcrypto/md4.c
@@ -31,7 +31,8 @@
* SUCH DAMAGE.
*/
-#include "config.h"
+#include <config.h>
+#include <roken.h>
#include "hash.h"
#include "md4.h"
@@ -42,7 +43,7 @@
#define D m->counter[3]
#define X data
-void
+int
MD4_Init (struct md4 *m)
{
m->sz[0] = 0;
@@ -51,6 +52,7 @@ MD4_Init (struct md4 *m)
C = 0x98badcfe;
B = 0xefcdab89;
A = 0x67452301;
+ return 1;
}
#define F(x,y,z) CRAYFIX((x & y) | (~x & z))
@@ -170,7 +172,7 @@ struct x32{
unsigned int b:32;
};
-void
+int
MD4_Update (struct md4 *m, const void *v, size_t len)
{
const unsigned char *p = v;
@@ -203,9 +205,10 @@ MD4_Update (struct md4 *m, const void *v, size_t len)
offset = 0;
}
}
+ return 1;
}
-void
+int
MD4_Final (void *res, struct md4 *m)
{
unsigned char zeros[72];
@@ -243,4 +246,5 @@ MD4_Final (void *res, struct md4 *m)
r[i] = swap_uint32_t (m->counter[i]);
}
#endif
+ return 1;
}