aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/crypto/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/crypto/md5.c')
-rw-r--r--gpxe/src/crypto/md5.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gpxe/src/crypto/md5.c b/gpxe/src/crypto/md5.c
index 76fb8a69..8c606398 100644
--- a/gpxe/src/crypto/md5.c
+++ b/gpxe/src/crypto/md5.c
@@ -20,36 +20,36 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <string.h>
#include <byteswap.h>
#include <gpxe/crypto.h>
#include <gpxe/md5.h>
-#define __md5step __attribute__ (( regparm ( 3 ) ))
-
struct md5_step {
- u32 __md5step ( * f ) ( u32 b, u32 c, u32 d );
+ u32 ( * f ) ( u32 b, u32 c, u32 d );
u8 coefficient;
u8 constant;
};
-static u32 __md5step f1(u32 b, u32 c, u32 d)
+static u32 f1(u32 b, u32 c, u32 d)
{
return ( d ^ ( b & ( c ^ d ) ) );
}
-static u32 __md5step f2(u32 b, u32 c, u32 d)
+static u32 f2(u32 b, u32 c, u32 d)
{
return ( c ^ ( d & ( b ^ c ) ) );
}
-static u32 __md5step f3(u32 b, u32 c, u32 d)
+static u32 f3(u32 b, u32 c, u32 d)
{
return ( b ^ c ^ d );
}
-static u32 __md5step f4(u32 b, u32 c, u32 d)
+static u32 f4(u32 b, u32 c, u32 d)
{
return ( c ^ ( b | ~d ) );
}