1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-10 10:40:59 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
c48cb80b1f Prevent false positive CF Test Failures
Marked dirty memory ends up in the result buffer after encoding (due to
the input having been marked dirty), and then the final comparison
to make sure that we got what we expected was triggering the constant
flow checker.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2021-03-02 22:48:40 +00:00
448d54610c First pass at constant flow tests for base64
This contains working CF tests for encode, however I have not yet got
decode to pass the tests.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2021-02-24 15:32:42 +00:00
690f3ebe92 tests: Add mbedtls_test_ prefix to zero_alloc()
Add mbedtls_test_ prefix to zero_alloc() test helper
function.

Command to change *.function files:
find . -name "*.function" -exec awk -i inplace \
    '{sub(/zero_alloc/,"mbedtls_test_&")}1' {} \;

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2020-06-12 14:33:08 +02:00
5fcca46a3a Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
d30ca130e8 Combine hex parameters in a struct 2018-08-06 11:40:57 +01:00
f1aaec9888 Intermediate hexify out change 2018-08-06 11:40:57 +01:00
93012e8bce Set selftest verbose flag to boost coverage 2016-09-27 17:29:22 +01:00
ba56136b5c Avoid in-out length in base64 2015-06-02 16:30:35 +01:00
2cf5a7c98e The Great Renaming
A simple execution of tmp/invoke-rename.pl
2015-04-08 13:25:31 +02:00
7f8099773e Rename include directory to mbedtls 2015-03-10 11:23:56 +00:00
ce2f237697 change test function includes to use one convention 2015-02-10 11:28:46 +00:00
64938c63f0 Accept spaces at end of line/buffer in base64 2014-10-15 23:53:33 +02:00
bd51b262d1 Add 'exit' label and variable initialization to relevant test suite functions 2014-07-10 16:37:50 +02:00
6697b6c13b Properly free memory in new base64 tests 2014-07-04 18:35:50 +02:00
d598318661 Fix base64_decode() to return and check length correctly 2014-07-04 15:01:00 +02:00
94b916c7b5 Split assignment and assert check into seperate lines in tests 2014-04-17 16:07:20 +02:00
dd0aae92e0 Replaced strcpy() with strncpy() in tests suites 2014-04-17 16:06:37 +02:00
201401646e Fix a few selftest typos 2013-10-10 13:21:48 +02:00
387a211fad Fix some dependencies in tests 2013-09-20 10:58:59 +02:00
33b43f1ec3 Converted .function file to c-like format and adapted generator code 2013-08-20 11:48:36 +02:00
dbd443dca6 Adapted .function files and .data files to new test framework
Changes include:
 - Integers marked with '#' in the .function files.
 - Strings should have "" in .data files.
 - String comparison instead of preprocessor-like replace for e.g. '=='
 - Params and variables cannot have the same name in .function files
2013-08-16 13:51:37 +02:00
5690efccc4 - Fixed a whole bunch of dependencies on defines between files, examples and tests 2011-05-26 13:16:06 +00:00
f4a3f301fd - Updated for migration to size_t 2011-04-24 15:53:29 +00:00
5946fd9124 - Added further coverage tests for Base64 2009-07-11 15:29:30 +00:00
3d36082a8d - Added test for self_test() 2009-07-05 11:29:38 +00:00
367dae44b2 - Added CMake makefiles as alternative to regular Makefiles.
- Added preliminary Code Coverage tests for AES, ARC4, Base64, MPI, SHA-family, MD-family and  HMAC-SHA-family.
2009-06-28 21:50:27 +00:00