qmc

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptKey added in v0.1.0

func DecryptKey(rawKey []byte) ([]byte, error)

func NewMapCipher added in v0.1.0

func NewMapCipher(key []byte) (*mapCipher, error)

func NewRC4Cipher added in v0.1.0

func NewRC4Cipher(key []byte) (*rc4Cipher, error)

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 NewStaticCipher added in v0.1.0

func NewStaticCipher() *staticCipher

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder added in v0.1.0

func NewDecoder(r io.ReadSeeker) (*Decoder, error)

func (Decoder) GetFileExt added in v0.1.0

func (d Decoder) GetFileExt() string

func (*Decoder) Read added in v0.1.0

func (d *Decoder) Read(p []byte) (int, error)

Read implements io.Reader, offer the decrypted audio data. Validate should call before Read to check if the file is valid.

func (*Decoder) Validate

func (d *Decoder) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL