aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pad.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add negative tests for cipher mode paddingJack Lloyd2016-11-151-26/+38
|
* Check all padding bytes in ESP_Padding::unpad()René Korthaus2016-11-151-0/+15
|
* Reunify registered test names [ci skip]René Korthaus2016-10-231-1/+1
|
* Add test vectors for block cipher padding modesRené Korthaus2016-07-111-0/+59
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.