Methods
(static) knownGroup(i) → {Object}
Returns the known SRP group with the given size (in bits).
Parameters:
Name | Type | Description |
---|---|---|
i |
String | The size of the known SRP group. |
Returns:
An object with "N" and "g" properties.
- Type
- Object
(static) makeVerifier(I, P, s, group) → {Object}
Calculates SRP v, the verifier.
v = g^x mod N [RFC 5054]
Parameters:
Name | Type | Description |
---|---|---|
I |
String | The username. |
P |
String | The password. |
s |
Object | A bitArray of the salt. |
group |
Object | The SRP group. Use sjcl.keyexchange.srp.knownGroup to obtain this object. |
Returns:
A bitArray of SRP v.
- Type
- Object
(static) makeX(I, P, s) → {Object}
Calculates SRP x.
x = SHA1( | SHA( | ":" | )) [RFC 2945]
Parameters:
Name | Type | Description |
---|---|---|
I |
String | The username. |
P |
String | The password. |
s |
Object | A bitArray of the salt. |
Returns:
A bitArray of SRP x.
- Type
- Object