padding

package
v0.27.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package padding implements some padding schemes for padding octets at the trailing end.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Padding

type Padding interface {
	BlockSize() int
	Pad(src []byte) []byte
	Unpad(src []byte) ([]byte, error)
}

Padding interface represents a padding scheme

func NewANSIX923Padding

func NewANSIX923Padding(blockSize uint) Padding

func NewISO9797M2Padding added in v0.19.3

func NewISO9797M2Padding(blockSize uint) Padding

func NewPKCS7Padding

func NewPKCS7Padding(blockSize uint) Padding

Jump to

Keyboard shortcuts

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