-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.d.ts
More file actions
34 lines (31 loc) · 815 Bytes
/
index.d.ts
File metadata and controls
34 lines (31 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
declare module 'amazon-user-pool-srp-client' {
export interface SRPClient {
poolName: string
N: string
k: string
g: string
infoBits: string
constructor(poolName: string)
generateRandomSmallA(): string
calculateA(a: string): string
calculateU(A: string, B: string): string
getPasswordAuthenticationKey(
username: string,
password: string,
serverBValue: string,
salt: string
): string
padHex(bigInt: string): string
hash(str: string): string
hexHash(str: string): string
computehkdf(ikm: string, salt: string): string
}
export function calculateSignature (
hkdf: string,
userPoolId: string,
username: string,
secretBlock: string,
dateNow: string
): string
export function getNowString(): string
}