Merge remote-tracking branch 'public/pr/2107' into development-proposed

This commit is contained in:
Simon Butcher 2018-10-28 16:16:58 +00:00
commit 02ef525a7b

View File

@ -127,7 +127,8 @@ void ecdsa_det_test_vectors( int id, char * d_str, int md_alg, char * msg,
md_info = mbedtls_md_info_from_type( md_alg );
TEST_ASSERT( md_info != NULL );
hlen = mbedtls_md_get_size( md_info );
mbedtls_md( md_info, (const unsigned char *) msg, strlen( msg ), hash );
TEST_ASSERT( mbedtls_md( md_info, (const unsigned char *) msg,
strlen( msg ), hash ) == 0 );
TEST_ASSERT( mbedtls_ecdsa_sign_det( &grp, &r, &s, &d, hash, hlen, md_alg ) == 0 );