mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
chg: prng detection now takes in consideration if detection fails.
This commit is contained in:
parent
9512f60227
commit
4e915d2eb4
5 changed files with 21 additions and 14 deletions
|
@ -591,11 +591,13 @@ static int l_hardnested(lua_State *L){
|
|||
|
||||
/**
|
||||
* @brief l_validate_prng is a function to test is a nonce is using the weak PRNG
|
||||
* detection = 1 == weak, 0 == hard , -1 = failed
|
||||
* @param L
|
||||
* @return
|
||||
*/
|
||||
static int l_detect_prng(lua_State *L) {
|
||||
lua_pushboolean(L, detect_classic_prng());
|
||||
int res = detect_classic_prng();
|
||||
lua_pushinteger(L, res);
|
||||
return 1;
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue