Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
a5d336bc
Commit
a5d336bc
authored
Jan 27, 2014
by
Gergely Budai
Committed by
Manuel Pégourié-Gonnard
Feb 06, 2014
Browse files
Increase title size (fits to increased curve names). Give verbose errors on failures.
parent
fbf09154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
programs/test/benchmark.c
programs/test/benchmark.c
+6
-2
No files found.
programs/test/benchmark.c
View file @
a5d336bc
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
#include "polarssl/dhm.h"
#include "polarssl/dhm.h"
#include "polarssl/ecdsa.h"
#include "polarssl/ecdsa.h"
#include "polarssl/ecdh.h"
#include "polarssl/ecdh.h"
#include "polarssl/error.h"
#if defined _MSC_VER && !defined snprintf
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#define snprintf _snprintf
...
@@ -57,7 +58,7 @@
...
@@ -57,7 +58,7 @@
#define BUFSIZE 1024
#define BUFSIZE 1024
#define HEADER_FORMAT " %-24s : "
#define HEADER_FORMAT " %-24s : "
#define TITLE_LEN
1
5
#define TITLE_LEN
2
5
#if !defined(POLARSSL_TIMING_C)
#if !defined(POLARSSL_TIMING_C)
int
main
(
int
argc
,
char
*
argv
[]
)
int
main
(
int
argc
,
char
*
argv
[]
)
...
@@ -132,7 +133,10 @@ do { \
...
@@ -132,7 +133,10 @@ do { \
} \
} \
\
\
if( ret != 0 ) \
if( ret != 0 ) \
printf( "FAILED\n" ); \
{ \
polarssl_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \
printf( "FAILED: %s\n", tmp ); \
} \
else \
else \
printf( "%9lu " TYPE "/s\n", i / 3 ); \
printf( "%9lu " TYPE "/s\n", i / 3 ); \
} while( 0 )
} while( 0 )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment