jose2go: github.com/dvsekhvalnov/jose2go/padding Index | Files

package padding

import "github.com/dvsekhvalnov/jose2go/padding"

package padding provides various padding algorithms

Index

Package Files

align.go pkcs7.go

func AddPkcs7 Uses

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 Uses

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

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

func RemovePkcs7 Uses

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

RemovePkcs7 removes pkcs7 padding from previously padded byte array

Package padding imports 1 packages (graph) and is imported by 5 packages. Updated 2016-07-31. Refresh now. Tools for package owners.