app/e2e/client/rocketchat.e2e.room.js
// Decrypt uploaded encrypted files. I/O is in arraybuffers.
Decrypt uploaded encrypted files. I/O is in arraybuffers.
Decrypt uploaded encrypted files . I / O is in arraybuffers .
async decryptFile(message) {
		if (message[0] !== '{') {
			return;
		}
		const [vector, cipherText] = splitVectorAndEcryptedData(EJSON.parse(message));
		try {
			return await decryptAES(vector, this.groupSessionKey, cipherText);
		} catch (error) {
			this.error('Error decrypting file: ', error);
			return false;
		}
	}
async decryptFile ( message ) { if ( message [ 0 ] !== '{' ) { return ; } const [ vector , cipherText ] = splitVectorAndEcryptedData ( EJSON . parse ( message ) ) ; try { return await decryptAES ( vector , this . groupSessionKey , cipherText ) ; } catch ( error ) { this . error ( 'Error decrypting file: ' , error ) ; return false ; } }
Decrypt uploaded encrypted files.
Decrypt uploaded encrypted files .