aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pad.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-1/+1
|
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-4/+4
|
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-1/+1
| | | | | | Turns out astyle has some bugs wrt C++11 initialize lists. Rather than having astyle mangle all of the tests, convert to using a string which is split once at the start instead of a vector of keys.
* Rewrote bc unpad functions as const time operations.Never2016-12-091-6/+5
| | | | | | The unpad functions return the blocksize as padding position, if the padding is invalid. .
* 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.