//
pkg.gl
Category
github.com/nogoegst/padding
module
package
1.0.0
Repository:
https://github.com/nogoegst/padding.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
52 SLOC
#
Functions
IntToBinary
IntToBinary encodes i into a byte slice as uint32.
Length
Length calculates length of padding for given nonce and key in range [0:maxlen).
Pad
Pad prepends padlen zero bytes to pt.
Unpad
Uppad removes first padlen bytes of paddedpt.