BigIntegerto back a counter in order to produce nonces of arbitrary length.
A common use case for this component is creation of IVs for ciphers with 16-byte block size, e.g. AES.
Instances of this class are thread safe.
|Constructor and Description|
Creates a new instance with given parameters.
public BigIntegerCounterNonce(BigInteger counter, int length)
counter- Initial counter value.
length- Maximum length of generated counter values in bytes.
public byte generate() throws LimitException
Copyright © 2003-2020 Virginia Tech. All Rights Reserved.