Repository navigation
Releases
New padding method
Added new padding method "Not Last Byte padding". It is a variation of "Arbitrary Tail Byte Padding" where the padding byte is not chosen randomly, but is the negated value of the last byte.
More efficient padding
This release features a more efficient padding function: PadLastBlock. It only allocates a new slice for the last block and does not copy all of the data. This makes it much faster than Pad, which remains in the package for simple padding of small data lengths.
Constant-time padding and unpadding
This release features nearly constant-time padding and unpadding in order to make timing attacks impossible.
Correct godoc example
This release features a working godoc example. Also, version information has been removed from the license comments.
There are no functional changes.
Fix misplaced documentation comment
The documentation comment of the Pad function has been moved to the correct line.
Otherwise there are no changes.
Initial release of blockpad
This is the initial release of the blockpad Go package.