RandomBridge class
Utility to use dart:math's Random class to generate numbers used by pointycastle.
- Implemented types
-
- Algorithm
Constructors
- RandomBridge(Random dartRandom)
Properties
- algorithmName → String
-
Get this algorithm's standard name.
no setteroverride
- dartRandom ↔ Random
-
getter/setter pair
- 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 -
This method generates a random Big Integer in a secure way
override
-
nextBytes(
int count) → Uint8List -
This method iterates through a list of bytes to return the next set of
count
bytesoverride -
nextUint16(
) → int -
This method generates a random Uint16
override
-
nextUint32(
) → int -
This method generates a random Uint32
override
-
nextUint8(
) → int -
This method generates a random Uint8
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seed(
CipherParameters params) → void -
this method is necessary to implement the super class but it is ignored because we are using a dependency to generate the seed
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited