BlockCtrRandom class

An implementation of SecureRandom that uses a BlockCipher with CTR mode to generate random values.

Implemented types

Constructors

BlockCtrRandom(BlockCipher cipher)

Properties

algorithmName → String
Get this algorithm's standard name.
no setteroverride
cipher → BlockCipher
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextBigInteger(int bitLength) → BigInt
Get a random BigInteger of bitLength bits.
inherited
nextBytes(int count) → Uint8List
Get a list of bytes of arbitrary length.
inherited
nextUint16() → int
Get two bytes long random int.
inherited
nextUint32() → int
Get four bytes long random int.
inherited
nextUint8() → int
Get one byte long random int.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seed(CipherParameters params) → void
Seed the RNG with some entropy (look at package cipher_entropy providing entropy sources).
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

factoryConfig → FactoryConfig
Intended for internal use.
final