mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-10-31 01:39:16 +00:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			212 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			212 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|   | package crypto | ||
|  | 
 | ||
|  | import ( | ||
|  | 	"crypto/cipher" | ||
|  | 
 | ||
|  | 	"github.com/v2ray/v2ray-core/common/crypto/internal" | ||
|  | ) | ||
|  | 
 | ||
|  | func NewChaCha20Stream(key []byte, iv []byte) cipher.Stream { | ||
|  | 	return internal.NewChaCha20Stream(key, iv, 20) | ||
|  | } |