chacha20.go 212 B

1234567891011
  1. package crypto
  2. import (
  3. "crypto/cipher"
  4. "github.com/v2ray/v2ray-core/common/crypto/internal"
  5. )
  6. func NewChaCha20Stream(key []byte, iv []byte) cipher.Stream {
  7. return internal.NewChaCha20Stream(key, iv, 20)
  8. }