Fix isPwdValid. Correct logs. Change history related function names.
[Issue#] N/A
[Bug] Wrong value returned by isPwdValid. Some logs showed up incorrectly as error.
History related functions had misleading names.
[Cause] Incorrect casting in isPwdValid.
[Solution] Add condition correcting returned time by isPwdValid. Correct log types. Change
historySize related functions to maxHistorySize.
[Verification] Build, run tests. Test tc43 should pass, others should work as earlier. Commit with
tc43 - http://slp-info.sec.samsung.net/gerrit/#/c/357776/
Change-Id: Ic9ce0423f2ec233f3c1d8703dba8ab92e998632d