padding

package
v0.0.0-...-b6f14a9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPaddingSize = errors.New("padding size error")
)
View Source
var (
	PKCS5 = &pkcs5{}
)
View Source
var (
	// difference with pkcs5 only block must be 8
	PKCS7 = &pkcs5{}
)

Functions

This section is empty.

Types

type Padding

type Padding interface {
	Padding(src []byte, blockSize int) []byte
	Unpadding(src []byte, blockSize int) ([]byte, error)
}

Padding is interface used for crypto.

Jump to

Keyboard shortcuts

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