go-common/app/interface/main/report-click/service/crypto/padding/padding.go
2019-04-22 18:49:16 +08:00

16 lines
270 B
Go

package padding
import (
"errors"
)
var (
ErrPaddingSize = errors.New("pkcs5 padding size error")
)
// Padding is interface used for crypto.
type Padding interface {
Padding(src []byte, blockSize int) []byte
Unpadding(src []byte, blockSize int) ([]byte, error)
}