Merge remote-tracking branch 'upstream-public/pr/1294' into development

This commit is contained in:
Jaeden Amero
2018-01-25 14:47:39 +00:00
36 changed files with 2175 additions and 682 deletions

View File

@@ -217,7 +217,11 @@ int main( void )
/*
* 5. Sign the parameters and send them
*/
mbedtls_sha1( buf, n, hash );
if( ( ret = mbedtls_sha1_ret( buf, n, hash ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_sha1_ret returned %d\n\n", ret );
goto exit;
}
buf[n ] = (unsigned char)( rsa.len >> 8 );
buf[n + 1] = (unsigned char)( rsa.len );