Fixed entropy calculation for sigil.
This commit is contained in:
parent
2fb09294e4
commit
b518d5ed12
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.2)
|
cmake_minimum_required (VERSION 3.2)
|
||||||
project(identiconpp
|
project(identiconpp
|
||||||
VERSION 0.3.4
|
VERSION 0.3.5
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ void Identiconpp::check_entropy(const string &digest, algorithm type)
|
||||||
}
|
}
|
||||||
case algorithm::sigil:
|
case algorithm::sigil:
|
||||||
{
|
{
|
||||||
entropy_provided = digest.length() / 2 * 8;
|
entropy_provided = digest.length() * 4;
|
||||||
entropy_required = (_columns / 2 + _columns % 2) * _rows + 8;
|
entropy_required = (_columns / 2 + _columns % 2) * _rows + 8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue