padding

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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