padding

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package padding handle 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 NewPKCS7Padding

func NewPKCS7Padding(blockSize uint) Padding

Jump to

Keyboard shortcuts

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