forgot one edit within the client for ultralight C and desfire

This commit is contained in:
midnitesnake 2014-11-09 11:37:07 +00:00
commit 8b70b6e7c2
3 changed files with 19 additions and 7 deletions

View 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;
}