SRP6Server class

Implemented types

Constructors

SRP6Server({required SRP6GroupParameters group, required BigInt v, required Digest digest, required SecureRandom random})

Properties

A ↔ BigInt?
getter/setter pair
B ↔ BigInt?
getter/setter pair
b ↔ BigInt?
getter/setter pair
digest ↔ Digest
getter/setter pair
g ↔ BigInt
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
v ↔ BigInt
getter/setter pair

Methods

calculateSecret(BigInt clientA) → BigInt?
Processes the client's credentials. If valid the shared secret is generated and returned. @param clientA The client's credentials @return A shared secret BigInt @throws CryptoException If client's credentials are invalid
override
calculateServerEvidenceMessage() → BigInt?
Computes the server evidence message M2 using the previously verified values. To be called after successfully verifying the client evidence message M1. @return M2: the server side generated evidence message @throws CryptoException
override
calculateSessionKey() → BigInt?
Computes the final session key as a result of the SRP successful mutual authentication To be called after calculating the server evidence message M2. @return Key: the mutual authenticated symmetric session key @throws CryptoException
override
generateServerCredentials() → BigInt?
Generates the server's credentials that are to be sent to the client. @return The server'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
verifyClientEvidenceMessage(BigInt clientM1) → bool
Authenticates the received client evidence message M1 and saves it only if correct. To be called after calculating the secret S. @param clientM1 the client side generated evidence message @return A boolean indicating if the client message M1 was the expected one. @throws CryptoException
override

Operators

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