Constructors
constructor
- new Spake2p(context, random, w0): Spake2p
Parameters
- context: Uint8Array
- random: bigint
- w0: bigint
Methods
computeSecretAndVerifiersFromX
- computeSecretAndVerifiersFromX(L, X, Y): Promise<{
hAY: Uint8Array;
hBX: Uint8Array;
Ke: Uint8Array;
}> Parameters
- L: Uint8Array
- X: Uint8Array
- Y: Uint8Array
Returns Promise<{
hAY: Uint8Array;
hBX: Uint8Array;
Ke: Uint8Array;
}>
computeSecretAndVerifiersFromY
- computeSecretAndVerifiersFromY(w1, X, Y): Promise<{
hAY: Uint8Array;
hBX: Uint8Array;
Ke: Uint8Array;
}> Parameters
- w1: bigint
- X: Uint8Array
- Y: Uint8Array
Returns Promise<{
hAY: Uint8Array;
hBX: Uint8Array;
Ke: Uint8Array;
}>
computeX
- computeX(): Uint8Array
Returns Uint8Array
computeY
- computeY(): Uint8Array
Returns Uint8Array
Static
computeW0L
- computeW0L(pbkdfParameters, pin): Promise<{
L: Uint8Array;
w0: bigint;
}> Returns Promise<{
L: Uint8Array;
w0: bigint;
}>
Static
computeW0W1
- computeW0W1(__namedParameters, pin): Promise<{
w0: bigint;
w1: bigint;
}> Returns Promise<{
w0: bigint;
w1: bigint;
}>
Static
create
- create(context, w0): Spake2p
Parameters
- context: Uint8Array
- w0: bigint