Static
Readonly
params
params: { 1024: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 1536: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 2048: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 3072: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 4096: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 6244: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; 8192: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }; hap: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string } } = srpParams
Type declaration
-
1024: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
1536: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
2048: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
3072: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
4096: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
6244: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
8192: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
N: BigInteger
-
N_length_bits: number
-
g: BigInteger
-
hash: string
-
hap: { N: BigInteger; N_length_bits: number; g: BigInteger; hash: string }
-
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).
Returns