Class HashBasedCounter
java.lang.Object
io.getlime.security.powerauth.crypto.lib.generator.HashBasedCounter
- All Implemented Interfaces:
Counter
Implementation of hash based counter.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HashBasedCounter
public HashBasedCounter()
-
-
Method Details
-
init
Generate initial counter data.- Specified by:
initin interfaceCounter- Returns:
- Initial counter data.
- Throws:
CryptoProviderException- In case key cryptography provider is incorrectly initialized.
-
next
public byte[] next(byte[] ctrData) Generate next counter data by hashing current counter data.
-