Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove md5 testing code

  • Loading branch information...
commit fee64ad1f9b2898f089670af8886a908d7132744 1 parent 29650a7
@mtheall mtheall authored
Showing with 0 additions and 23 deletions.
  1. +0 −23 sdk/userlib/md5/source/md5.arm.c
View
23 sdk/userlib/md5/source/md5.arm.c
@@ -1,16 +1,6 @@
/* This code is based off of RFC 1321 - The MD5 Message Digest Algorithm */
-#ifdef FEOS
#include <feos.h>
-#elif defined(ARM9)
-#include <nds.h>
-#define FEOS_EXPORT
-#else
-#include <stdint.h>
-typedef uint8_t u8;
-typedef uint32_t u32;
-#define FEOS_EXPORT
-#endif
#include <stdint.h>
#include <stdlib.h>
@@ -18,7 +8,6 @@ typedef struct {
u32 bits[2];
u32 scratch[4];
u8 buffer[64];
-// u8 digest[16];
} MD5_CTX;
int MD5_Init(MD5_CTX **c);
@@ -27,7 +16,6 @@ int MD5_Final(unsigned char *md, MD5_CTX **c);
static void Transform(u32 *buf, u32 *in);
-#ifdef ARM9
static inline int ror(int v, int sh) {
__asm__ __volatile__(
"ror %[result], %[operand], %[shift]"
@@ -37,17 +25,6 @@ static inline int ror(int v, int sh) {
return v;
}
-#else
-static inline int ror(int v, int sh) {
- __asm__ __volatile__(
- "ror %%cl, %%eax"
- : "=a" (v)
- : "a" (v), "c" (sh)
- );
-
- return v;
-}
-#endif
static u8 PADDING[64] = {
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Please sign in to comment.
Something went wrong with that request. Please try again.