refactor: qmc don't export internal functions

This commit is contained in:
Unlock Music Dev
2022-11-19 07:25:42 +08:00
parent b275b552ed
commit 4365628bff
8 changed files with 24 additions and 26 deletions

View File

@@ -12,9 +12,9 @@ type rc4Cipher struct {
n int
}
// NewRC4Cipher creates and returns a new rc4Cipher. The key argument should be the
// newRC4Cipher creates and returns a new rc4Cipher. The key argument should be the
// RC4 key, at least 1 byte and at most 256 bytes.
func NewRC4Cipher(key []byte) (*rc4Cipher, error) {
func newRC4Cipher(key []byte) (*rc4Cipher, error) {
n := len(key)
if n == 0 {
return nil, errors.New("qmc/cipher_rc4: invalid key size")