package padding
import "github.com/theupdateframework/notary/Godeps/_workspace/src/github.com/dvsekhvalnov/jose2go/padding"
package padding provides various padding algorithms
Index ¶
- func AddPkcs7(data []byte, blockSize int) []byte
- func Align(data []byte, bitSize int) []byte
- func RemovePkcs7(padded []byte, blockSize int) []byte
Functions ¶
func AddPkcs7 ¶
AddPkcs7 pads given byte array using pkcs7 padding schema till it has blockSize length in bytes
func Align ¶
Align left pads given byte array with zeros till it have at least bitSize length.
func RemovePkcs7 ¶
RemovePkcs7 removes pkcs7 padding from previously padded byte array
Source Files ¶
- Version
- v0.2.0
- Published
- Feb 25, 2016
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.