|
@@ -64,23 +64,6 @@ static inline u32 H(u32 x, u32 y, u32 z)
|
|
|
#define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s))
|
|
|
#define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s))
|
|
|
|
|
|
-/* XXX: this stuff can be optimized */
|
|
|
-static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
|
|
|
-{
|
|
|
- while (words--) {
|
|
|
- __le32_to_cpus(buf);
|
|
|
- buf++;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static inline void cpu_to_le32_array(u32 *buf, unsigned int words)
|
|
|
-{
|
|
|
- while (words--) {
|
|
|
- __cpu_to_le32s(buf);
|
|
|
- buf++;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
static void md4_transform(u32 *hash, u32 const *in)
|
|
|
{
|
|
|
u32 a, b, c, d;
|