mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
ADD: new pwdgen algo, (thanks @jackfagner) who did a great job figuring it out. Read his blog.
ref. https://github.com/jackfagner/NfcKey/blob/master/NfcKeyC.c
This commit is contained in:
parent
9959d5c1e7
commit
0815f19389
3 changed files with 91 additions and 6 deletions
|
@ -26,6 +26,9 @@
|
|||
#ifndef ROTR
|
||||
# define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
|
||||
#endif
|
||||
#ifndef ROTL
|
||||
# define ROTL(x,n) (((uintmax_t)(x) << (n)) | ((uintmax_t)(x) >> ((sizeof(x) * 8) - (n))))
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue