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
71e75dc2
Commit
71e75dc2
authored
Dec 19, 2014
by
Manuel Pégourié-Gonnard
Browse files
Fix unused variable issue in some configs
parent
0da7b040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
programs/test/benchmark.c
programs/test/benchmark.c
+7
-1
No files found.
programs/test/benchmark.c
View file @
71e75dc2
...
...
@@ -244,7 +244,7 @@ typedef struct {
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
keysize
,
i
;
int
i
;
unsigned
char
tmp
[
200
];
char
title
[
TITLE_LEN
];
todo_list
todo
;
...
...
@@ -385,6 +385,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_CIPHER_MODE_CBC)
if
(
todo
.
aes_cbc
)
{
int
keysize
;
aes_context
aes
;
aes_init
(
&
aes
);
for
(
keysize
=
128
;
keysize
<=
256
;
keysize
+=
64
)
...
...
@@ -404,6 +405,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_GCM_C)
if
(
todo
.
aes_gcm
)
{
int
keysize
;
gcm_context
gcm
;
for
(
keysize
=
128
;
keysize
<=
256
;
keysize
+=
64
)
{
...
...
@@ -424,6 +426,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_CCM_C)
if
(
todo
.
aes_ccm
)
{
int
keysize
;
ccm_context
ccm
;
for
(
keysize
=
128
;
keysize
<=
256
;
keysize
+=
64
)
{
...
...
@@ -446,6 +449,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_CAMELLIA_C) && defined(POLARSSL_CIPHER_MODE_CBC)
if
(
todo
.
camellia
)
{
int
keysize
;
camellia_context
camellia
;
camellia_init
(
&
camellia
);
for
(
keysize
=
128
;
keysize
<=
256
;
keysize
+=
64
)
...
...
@@ -467,6 +471,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_BLOWFISH_C) && defined(POLARSSL_CIPHER_MODE_CBC)
if
(
todo
.
blowfish
)
{
int
keysize
;
blowfish_context
blowfish
;
blowfish_init
(
&
blowfish
);
...
...
@@ -571,6 +576,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_RSA_C) && defined(POLARSSL_GENPRIME)
if
(
todo
.
rsa
)
{
int
keysize
;
rsa_context
rsa
;
for
(
keysize
=
1024
;
keysize
<=
4096
;
keysize
*=
2
)
{
...
...
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