SRP6Util class

Constructors

SRP6Util()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

calculateK(Digest digest, BigInt N, BigInt g) BigInt
calculateKey(Digest digest, BigInt N, BigInt? S) BigInt
Computes the final Key according to the standard routine: Key = H(S) digest The Digest used as the hashing function H N Modulus used to get the pad length S The secret calculated by both sides @return the final Key value.
calculateM1(Digest digest, BigInt N, BigInt? A, BigInt? B, BigInt? S) BigInt
Computes the client evidence message (M1) according to the standard routine: M1 = H( A | B | S ) digest The Digest used as the hashing function H N Modulus used to get the pad length A The public client value B The public server value S The secret calculated by both sides M1 The calculated client evidence message
calculateM2(Digest digest, BigInt N, BigInt? A, BigInt? M1, BigInt? S) BigInt
Computes the server evidence message (M2) according to the standard routine: M2 = H( A | M1 | S ) digest The Digest used as the hashing function H N Modulus used to get the pad length A The public client value M1 The client evidence message S The secret calculated by both sides @return M2 The calculated server evidence message
calculateU(Digest digest, BigInt N, BigInt? A, BigInt? B) BigInt
calculateX(Digest digest, BigInt N, Uint8List salt, Uint8List identity, Uint8List password) BigInt
decodeBigInt(List<int> bytes) BigInt
Decode a BigInt from bytes in big-endian encoding.
encodeBigInt(BigInt number) Uint8List
Encode a BigInt into bytes using big-endian encoding.
generatePrivateValue(Digest digest, BigInt N, BigInt g, SecureRandom random) BigInt?
getPadded(BigInt n, int length) Uint8List
hashPaddedPair(Digest digest, BigInt N, BigInt? n1, BigInt? n2) BigInt
hashPaddedTriplet(Digest digest, BigInt N, BigInt? n1, BigInt? n2, BigInt? n3) BigInt
validatePublicValue(BigInt N, BigInt val) BigInt