From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- .../node_modules/matrix-js-sdk/lib/crypto/aes.d.ts | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/aes.d.ts (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/aes.d.ts') diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/aes.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/aes.d.ts deleted file mode 100644 index 30ab08a..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/aes.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export interface IEncryptedPayload { - [key: string]: any; - /** the initialization vector in base64 */ - iv: string; - /** the ciphertext in base64 */ - ciphertext: string; - /** the HMAC in base64 */ - mac: string; -} -/** - * encrypt a string - * - * @param data - the plaintext to encrypt - * @param key - the encryption key to use - * @param name - the name of the secret - * @param ivStr - the initialization vector to use - */ -export declare function encryptAES(data: string, key: Uint8Array, name: string, ivStr?: string): Promise; -/** - * decrypt a string - * - * @param data - the encrypted data - * @param key - the encryption key to use - * @param name - the name of the secret - */ -export declare function decryptAES(data: IEncryptedPayload, key: Uint8Array, name: string): Promise; -/** Calculate the MAC for checking the key. - * - * @param key - the key to use - * @param iv - The initialization vector as a base64-encoded string. - * If omitted, a random initialization vector will be created. - * @returns An object that contains, `mac` and `iv` properties. - */ -export declare function calculateKeyCheck(key: Uint8Array, iv?: string): Promise; -//# sourceMappingURL=aes.d.ts.map \ No newline at end of file -- cgit