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.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | import { SignalService } from '../../../../protobuf'; | 
					
						
							|  |  |  | import { CipherTextObject } from '../../../../../libtextsecure/libsignal-protocol'; | 
					
						
							|  |  |  | import { SecretSessionCipherInterface } from '../../../../../js/modules/metadata/SecretSessionCipher'; | 
					
						
							|  |  |  | import { StringUtils } from '../../../../session/utils'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export class SecretSessionCipherStub implements SecretSessionCipherInterface { | 
					
						
							|  |  |  |   public async encrypt( | 
					
						
							|  |  |  |     _destinationPubkey: string, | 
					
						
							|  |  |  |     _senderCertificate: SignalService.SenderCertificate, | 
					
						
							|  |  |  |     innerEncryptedMessage: CipherTextObject | 
					
						
							|  |  |  |   ): Promise<ArrayBuffer> { | 
					
						
							|  |  |  |     const { body } = innerEncryptedMessage; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     return StringUtils.encode(body, 'binary'); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   public async decrypt( | 
					
						
							|  |  |  |     _cipherText: ArrayBuffer, | 
					
						
							|  |  |  |     _me: { number: string; deviceId: number } | 
					
						
							|  |  |  |   ): Promise<{ | 
					
						
							|  |  |  |     isMe?: boolean; | 
					
						
							|  |  |  |     sender: string; | 
					
						
							|  |  |  |     content: ArrayBuffer; | 
					
						
							|  |  |  |     type: SignalService.Envelope.Type; | 
					
						
							|  |  |  |   }> { | 
					
						
							|  |  |  |     throw new Error('Not implemented'); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |