]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/crypto1.c
In my attempts to make the LEGIC code better, its not working now. Timings if...
[proxmark3-svn] / armsrc / crypto1.c
index db864113dbdf5758652c36d4cea1c28190f8b78e..98d38b2bf2189ad4a65047e263669e6a67b53c84 100644 (file)
@@ -20,9 +20,6 @@
 #include "crapto1.h"
 #include <stdlib.h>
 
-#define SWAPENDIAN(x)\
-       (x = (x >> 8 & 0xff00ff) | (x & 0xff00ff) << 8, x = x >> 16 | x << 16)
-
 void crypto1_create(struct Crypto1State *s, uint64_t key)
 {
 //     struct Crypto1State *s = malloc(sizeof(*s));
@@ -32,7 +29,6 @@ void crypto1_create(struct Crypto1State *s, uint64_t key)
                s->odd  = s->odd  << 1 | BIT(key, (i - 1) ^ 7);
                s->even = s->even << 1 | BIT(key, i ^ 7);
        }
-       return;
 }
 void crypto1_destroy(struct Crypto1State *state)
 {
Impressum, Datenschutz