mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-27 23:37:08 +00:00
Modify tests in response to review comments.
Address the way the tests have been modified in response to review comments. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
73cfde8f85
commit
5903e9c428
@ -3,7 +3,6 @@ MD list
|
||||
mbedtls_md_list:
|
||||
|
||||
MD NULL/uninitialised arguments
|
||||
depends_on:MBEDTLS_MD_C
|
||||
md_null_args:
|
||||
|
||||
Information on MD5
|
||||
|
@ -61,7 +61,6 @@ void md_null_args()
|
||||
TEST_EQUAL(mbedtls_md_setup(&ctx, NULL, 0), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
#if defined(MBEDTLS_MD_C)
|
||||
TEST_EQUAL(mbedtls_md_setup(NULL, info, 0), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
#endif
|
||||
|
||||
TEST_EQUAL(mbedtls_md_starts(NULL), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
TEST_EQUAL(mbedtls_md_starts(&ctx), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
@ -71,6 +70,7 @@ void md_null_args()
|
||||
|
||||
TEST_EQUAL(mbedtls_md_finish(NULL, buf), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
TEST_EQUAL(mbedtls_md_finish(&ctx, buf), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
#endif
|
||||
|
||||
TEST_EQUAL(mbedtls_md(NULL, buf, 1, buf), MBEDTLS_ERR_MD_BAD_INPUT_DATA);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user