Browse Source

Restored the le32_to_cpus() and cpu_to_le32s() calls

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
4ef1ef0ee4
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/crypto/md5.c

+ 6
- 2
src/crypto/md5.c View File

@@ -6,8 +6,12 @@
6 6
  * Derived from cryptoapi implementation, originally based on the
7 7
  * public domain implementation written by Colin Plumb in 1993.
8 8
  *
9
+ * Reduced object size by around 50% compared to the original Linux
10
+ * version for use in Etherboot by Michael Brown.
11
+ *
9 12
  * Copyright (c) Cryptoapi developers.
10 13
  * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
14
+ * Copyright (c) 2006 Michael Brown <mbrown@fensystems.co.uk>
11 15
  * 
12 16
  * This program is free software; you can redistribute it and/or modify it
13 17
  * 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)
143 147
 static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
144 148
 {
145 149
 	while (words--) {
146
-		//		__le32_to_cpus(buf);
150
+		le32_to_cpus(buf);
147 151
 		buf++;
148 152
 	}
149 153
 }
@@ -151,7 +155,7 @@ static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
151 155
 static inline void cpu_to_le32_array(u32 *buf, unsigned int words)
152 156
 {
153 157
 	while (words--) {
154
-		//		__cpu_to_le32s(buf);
158
+		cpu_to_le32s(buf);
155 159
 		buf++;
156 160
 	}
157 161
 }

Loading…
Cancel
Save