mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
212 B
12 lines
212 B
9 years ago
|
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)
|
||
|
}
|