Filter invalid authorisations from the file server
parent
2e82bf98c1
commit
d4ea483aa0
@ -1,27 +1,27 @@
|
|||||||
import { PairingAuthorisation } from "../js/modules/data";
|
import { PairingAuthorisation } from '../js/modules/data';
|
||||||
|
|
||||||
declare enum PairingTypeEnum {
|
declare enum PairingTypeEnum {
|
||||||
REQUEST = 1,
|
REQUEST = 1,
|
||||||
GRANT
|
GRANT,
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CryptoInterface {
|
export interface CryptoInterface {
|
||||||
DHDecrypt: any,
|
DHDecrypt: any;
|
||||||
DHEncrypt: any,
|
DHEncrypt: any;
|
||||||
DecryptGCM: any, // AES-GCM
|
DecryptGCM: any; // AES-GCM
|
||||||
EncryptGCM: any, // AES-GCM
|
EncryptGCM: any; // AES-GCM
|
||||||
FallBackDecryptionError: any,
|
FallBackDecryptionError: any;
|
||||||
FallBackSessionCipher: any,
|
FallBackSessionCipher: any;
|
||||||
LokiSessionCipher: any,
|
LokiSessionCipher: any;
|
||||||
PairingType: PairingTypeEnum,
|
PairingType: PairingTypeEnum;
|
||||||
_decodeSnodeAddressToPubKey: any,
|
_decodeSnodeAddressToPubKey: any;
|
||||||
decryptForPubkey: any,
|
decryptForPubkey: any;
|
||||||
decryptToken: any,
|
decryptToken: any;
|
||||||
encryptForPubkey: any,
|
encryptForPubkey: any;
|
||||||
generateEphemeralKeyPair: any,
|
generateEphemeralKeyPair: any;
|
||||||
generateSignatureForPairing: any,
|
generateSignatureForPairing: any;
|
||||||
sha512: any,
|
sha512: any;
|
||||||
validateAuthorisation: any,
|
validateAuthorisation: any;
|
||||||
verifyAuthorisation(authorisation: PairingAuthorisation): Promise<boolean>;
|
verifyAuthorisation(authorisation: PairingAuthorisation): Promise<boolean>;
|
||||||
verifyPairingSignature: any,
|
verifyPairingSignature: any;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue