pkcs7

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInvalidPadding = errors.New("invalid PKCS#7 padding")

Avoid the potential for creating a padding oracle only a single error will ever be generated

Functions

func Pad

func Pad(blockSize int, buf []byte) []byte

Implement PKCS#7 padding

func PaddedSize

func PaddedSize(blockSize int, length int) int

func Unpad

func Unpad(blockSize int, buf []byte) ([]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