From 4ef1ef0ee4c0e3c106ef8500de93d00cac5851bd Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 11 Sep 2006 17:54:50 +0000 Subject: [PATCH] Restored the le32_to_cpus() and cpu_to_le32s() calls --- src/crypto/md5.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/crypto/md5.c b/src/crypto/md5.c index 0c52ee6a..299b2d6c 100644 --- a/src/crypto/md5.c +++ b/src/crypto/md5.c @@ -6,8 +6,12 @@ * Derived from cryptoapi implementation, originally based on the * public domain implementation written by Colin Plumb in 1993. * + * Reduced object size by around 50% compared to the original Linux + * version for use in Etherboot by Michael Brown. + * * Copyright (c) Cryptoapi developers. * Copyright (c) 2002 James Morris + * Copyright (c) 2006 Michael Brown * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -143,7 +147,7 @@ static void md5_transform(u32 *hash, const u32 *in) static inline void le32_to_cpu_array(u32 *buf, unsigned int words) { while (words--) { - // __le32_to_cpus(buf); + le32_to_cpus(buf); buf++; } } @@ -151,7 +155,7 @@ static inline void le32_to_cpu_array(u32 *buf, unsigned int words) static inline void cpu_to_le32_array(u32 *buf, unsigned int words) { while (words--) { - // __cpu_to_le32s(buf); + cpu_to_le32s(buf); buf++; } }