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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user