]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.c
forgot one edit within the client for ultralight C and desfire
[proxmark3-svn] / client / util.c
index 15e911a146940800ee305efdfa9729268745abc9..8d770678ea9132ab55ece2d897f36d2a2b146dc0 100644 (file)
@@ -248,3 +248,13 @@ int param_getstr(const char *line, int paramnum, char * str)
        
        return en - bg + 1;
 }
+
+// Needed to Authenticate to Ultralight C tags & DESFIRE tags
+void rol (uint8_t *data, const size_t len){
+    uint8_t first = data[0];
+    for (size_t i = 0; i < len-1; i++) {
+        data[i] = data[i+1];
+    }
+    data[len-1] = first;
+}
+
Impressum, Datenschutz