16 lines
284 B
Go
16 lines
284 B
Go
package encrypt
|
|
|
|
type RawMethod struct{}
|
|
|
|
func (m *RawMethod) Init(key []byte, iv []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func (m *RawMethod) Encrypt(src []byte) (dst []byte, err error) {
|
|
return src, nil
|
|
}
|
|
|
|
func (m *RawMethod) Decrypt(dst []byte) (src []byte, err error) {
|
|
return dst, nil
|
|
}
|