mirror of
				https://github.com/bolucat/Archive.git
				synced 2025-10-31 20:03:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			521 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			521 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| 
 | |
| namespace Shadowsocks.Encryption
 | |
| {
 | |
|     public interface IEncryptor : IDisposable
 | |
|     {
 | |
|         /* length == -1 means not used */
 | |
|         int AddrBufLength { set; get; }
 | |
|         void Encrypt(byte[] buf, int length, byte[] outbuf, out int outlength);
 | |
|         void Decrypt(byte[] buf, int length, byte[] outbuf, out int outlength);
 | |
|         void EncryptUDP(byte[] buf, int length, byte[] outbuf, out int outlength);
 | |
|         void DecryptUDP(byte[] buf, int length, byte[] outbuf, out int outlength);
 | |
|     }
 | |
| }
 | 
![github-action[bot]](/assets/img/avatar_default.png)