15 lines
254 B
Go
15 lines
254 B
Go
|
|
package decrypt
|
||
|
|
|
||
|
|
import "io"
|
||
|
|
|
||
|
|
// StreamDecoder decrypts audio stream bytes in place.
|
||
|
|
type StreamDecoder interface {
|
||
|
|
Decrypt(buf []byte, offset int)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Decoder decrypts one encrypted media file.
|
||
|
|
type Decoder interface {
|
||
|
|
Validate() error
|
||
|
|
io.Reader
|
||
|
|
}
|