Static params
params: { 1024: object; 1536: object; 2048: object; 3072: object; 4096: object; 6244: object; 8192: object; hap: object } = srpParams
Type declaration
-
1024: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
1536: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
2048: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
3072: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
4096: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
6244: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
8192: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
hap: object
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
The verifier is calculated as described in Section 3 of [SRP-RFC]. We give the algorithm here for convenience.
The verifier (v) is computed based on the salt (s), user name (I), password (P), and group parameters (N, g).
x = H(s | H(I | ":" | P)) v = g^x % N