go-common/app/interface/main/report-click/service/crypto/padding/padding.go

16 lines
270 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
}