The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/xml-encryption.ts

23 lines
936 B

declare module 'xml-encryption' {
export interface IDecryptOptions {
disallowDecryptionWithInsecureAlgorithm?: boolean;
warnInsecureAlgorithm?: boolean;
key: string;
}
export function decrypt(xml: string | Element | Document, options: IDecryptOptions, callback: (err: Error, result: any) => void): string;
export function decryptKeyInfo(doc: string | Element |Document, options: IDecryptOptions): string;
export interface IEncryptOptions {
rsa_pub: string;
pem: Buffer | string;
disallowEncryptionWithInsecureAlgorithm: boolean;
keyEncryptionAlgorithm: string;
encryptionAlgorithm: string;
input_encoding?: string;
warnInsecureAlgorithm: boolean;
}
export function encrypt(content: string, options: IEncryptOptions, callback: (err: Error, result: any) => void): string;
export function encryptKeyInfo(symmetricKey: string, options: IEncryptOptions, callback: (err: Error, result: any) => void): string;
}