ADD: a new pwdgen algo Nicknamed C, (Huge props to @Bettse for everything) also added to the "hf mfu info" command. However, that will not work given the system's lockbits.. :( Maybe I'll add a function to test all imp pwdgens given a UID without making a authentication call to tag.

ADD:   BSWAP_32 macro, for changing endianness.
This commit is contained in:
iceman1001 2016-01-09 17:17:36 +01:00
commit dd79e03a1a
4 changed files with 43 additions and 6 deletions

View file

@ -74,6 +74,7 @@ void rol(uint8_t *data, const size_t len){
}
data[len-1] = first;
}
void lsl (uint8_t *data, size_t len) {
for (size_t n = 0; n < len - 1; n++) {
data[n] = (data[n] << 1) | (data[n+1] >> 7);
@ -421,7 +422,6 @@ void StartCountSspClk()
while (AT91C_BASE_TC0->TC_CV < 0xFFF0);
}
uint32_t RAMFUNC GetCountSspClk(){
uint32_t tmp_count;
tmp_count = (AT91C_BASE_TC2->TC_CV << 16) | AT91C_BASE_TC0->TC_CV;