SRP6Client class

Implemented types

Constructors

SRP6Client({required SRP6GroupParameters group, required Digest digest, required SecureRandom random})

Properties

a BigInt?
getter/setter pair
A BigInt?
getter/setter pair
B BigInt?
getter/setter pair
digest Digest
getter/setter pair
g BigInt
getter/setter pair
group SRP6GroupParameters
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
Key BigInt?
getter/setter pair
M1 BigInt?
getter/setter pair
M2 BigInt?
getter/setter pair
N BigInt
getter/setter pair
random SecureRandom
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
S BigInt?
getter/setter pair
u BigInt?
getter/setter pair
x BigInt?
getter/setter pair

Methods

calculateClientEvidenceMessage() BigInt?
Computes the client evidence message M1 using the previously received values. To be called after calculating the secret S. returns M1: the client side generated evidence message throws Exception
override
calculateS() BigInt?
S = (B - kg^x) ^ (a + ux)
calculateSecret(BigInt serverB) BigInt?
Generates the secret S given the server's credentials @param serverB The server's credentials @return Client's verification message for the server @throws Exception If server's credentials are invalid
override
calculateSessionKey() BigInt?
Computes the final session key as a result of the SRP successful mutual authentication To be called after verifying the server evidence message M2. returns Key: the mutually authenticated symmetric session key throws Exception
override
generateClientCredentials(Uint8List salt, Uint8List identity, Uint8List password) BigInt?
Generates the client's credentials that are to be sent to the server. @return The client's public value
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectPrivateValue() BigInt?
toString() String
A string representation of this object.
inherited
verifyServerEvidenceMessage(BigInt serverM2) bool
Authenticates the server evidence message M2 received and saves it only if correct. serverM2 the server side generated evidence message return A boolean indicating if the server message M2 was the expected one. throws Exception
override

Operators

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