1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-05 00:24:24 -04:00
Files
v2fly/common/crypto/chacha20.go

12 lines
212 B
Go
Raw Normal View History

2016-02-23 17:33:54 +01:00
package crypto
import (
"crypto/cipher"
2016-07-25 10:28:11 +02:00
"github.com/v2ray/v2ray-core/common/crypto/internal"
2016-02-23 17:33:54 +01:00
)
2016-07-23 13:04:44 +02:00
func NewChaCha20Stream(key []byte, iv []byte) cipher.Stream {
2016-07-25 10:28:11 +02:00
return internal.NewChaCha20Stream(key, iv, 20)
2016-02-23 17:33:54 +01:00
}