You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/libloki/crypto.d.ts

28 lines
700 B
TypeScript

import { PairingAuthorisation } from "../js/modules/data";
declare enum PairingTypeEnum {
REQUEST = 1,
GRANT
}
export interface CryptoInterface {
DHDecrypt: any,
DHEncrypt: any,
DecryptGCM: any, // AES-GCM
EncryptGCM: any, // AES-GCM
FallBackDecryptionError: any,
FallBackSessionCipher: any,
LokiSessionCipher: any,
PairingType: PairingTypeEnum,
_decodeSnodeAddressToPubKey: any,
decryptForPubkey: any,
decryptToken: any,
encryptForPubkey: any,
generateEphemeralKeyPair: any,
generateSignatureForPairing: any,
sha512: any,
validateAuthorisation: any,
verifyAuthorisation(authorisation: PairingAuthorisation): Promise<boolean>;
verifyPairingSignature: any,
}