paddingx

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PKCS5    = "PKCS5"
	PKCS7    = "PKCS7"
	ZERO     = "ZERO"
	ANSIX923 = "ANSIX923"
)

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(data []byte) []byte

func PKCS5Unpadding

func PKCS5Unpadding(data []byte) ([]byte, error)

func PKCS7Padding

func PKCS7Padding(data []byte, blockSize int) []byte

func PKCS7Unpadding

func PKCS7Unpadding(data []byte, blockSize int) ([]byte, error)

func Pad

func Pad(data []byte, blockSize int, mode string) ([]byte, error)

func Unpad

func Unpad(data []byte, blockSize int, mode string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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