padding

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPKCS7BlockSize = errors.New("pkcs7: invalid block size")
	ErrInvalidPKCS7Padding   = errors.New("pkcs7: incorrect padding")
)

Functions

func PadPKCS7

func PadPKCS7(buf []byte, size int) ([]byte, error)

PadPKCS7 adds PKCS#7 padding to a message.

func UnpadPKCS7

func UnpadPKCS7(buf []byte, size int) ([]byte, error)

UnpadPKCS7 removes PKCS#7 from a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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