aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/pad.vec
Commit message (Collapse)AuthorAgeFilesLines
* Add test vectors for block cipher padding modesRené Korthaus2016-07-111-0/+83
Exports get_bc_pad() to be used from tests. Adds separate handcrafted tests for block cipher padding modes. They were previously only tested implicitly during the block cipher modes of operation tests, though not all padding modes were covered. And in case a mode of operation is not part of the enabled modules, the previously tested padding modes are not covered at all. Fixes an off-by-one bug in the previously untested ANSI X9.23 padding mode, where the number of zero bytes in the pad was one more than allowed by the standard.