cognito-srp
Version:
Secure Remote Password protocol implementation compatible with Amazon Cognito.
11 lines (10 loc) • 640 B
TypeScript
/// <reference types="node" />
import { BigInteger } from './BigInteger';
import { ClientUser } from './UserPool';
export declare const HASH_TYPE = "sha256";
export declare function getHash(data: Buffer | string, length?: number): string;
export declare function padHex(data: string | Buffer): string;
export declare function randomBytes(size?: number): Promise<Buffer>;
export declare function calculateScramblingParameter(A: Buffer, B: Buffer): BigInteger;
export declare function calculatePrivateKey(poolname: string, user: ClientUser, salt: string): BigInteger;
export declare function getBigInteger(data: string | Buffer): BigInteger;