padding

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bit      bit
	ISO10126 iso10126
	ISO7816  iso7816
	PKCS5    pkcs5
	PKCS7    pkcs7
	X923     x923
	Zero     zero
)

Functions

func OverheadSize added in v1.8.0

func OverheadSize(length, blocksize int) int

Types

type BlockSizeError

type BlockSizeError int

func (BlockSizeError) Error

func (i BlockSizeError) Error() string

type InvalidDataError

type InvalidDataError int

func (InvalidDataError) Error

func (i InvalidDataError) Error() string

type Padding

type Padding interface {
	Pad(b []byte, blocksize int) ([]byte, error)
	Unpad(b []byte, blocksize int) ([]byte, error)
}

Jump to

Keyboard shortcuts

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