padding

package
v0.0.0-...-926964d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package padding provides various padding algorithms

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPkcs7

func AddPkcs7(data []byte, blockSize int) []byte

AddPkcs7 pads given byte array using pkcs7 padding schema till it has blockSize length in bytes

func Align

func Align(data []byte, bitSize int) []byte

Align left pads given byte array with zeros till it have at least bitSize length.

func RemovePkcs7

func RemovePkcs7(padded []byte, blockSize int) []byte

RemovePkcs7 removes pkcs7 padding from previously padded byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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