Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
0cc9526c
Commit
0cc9526c
authored
Jun 25, 2012
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Make compiling and running of des-compat-test more silent.
parent
144620e0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+6
-0
6 additions, 0 deletions
ChangeLog
testsuite/des-compat-test.c
+12
-8
12 additions, 8 deletions
testsuite/des-compat-test.c
with
18 additions
and
8 deletions
ChangeLog
+
6
−
0
View file @
0cc9526c
2012-06-25 Niels Möller <nisse@lysator.liu.se>
* testsuite/des-compat-test.c (test_main): Disable declarations of
disabled functions and variables, to avoid warnings. No verbose
output unless verbose flag is set.
2012-06-09 Niels Möller <nisse@lysator.liu.se>
2012-06-09 Niels Möller <nisse@lysator.liu.se>
* examples/Makefile.in (SOURCES): Added base16dec.c, forgotten
* examples/Makefile.in (SOURCES): Added base16dec.c, forgotten
...
...
This diff is collapsed.
Click to expand it.
testsuite/des-compat-test.c
+
12
−
8
View file @
0cc9526c
...
@@ -287,9 +287,11 @@ unsigned char cbc_cksum_data[8]={0x1D,0x26,0x93,0x97,0xf7,0xfe,0x62,0xb4};
...
@@ -287,9 +287,11 @@ unsigned char cbc_cksum_data[8]={0x1D,0x26,0x93,0x97,0xf7,0xfe,0x62,0xb4};
#ifndef NOPROTO
#ifndef NOPROTO
static
char
*
pt
(
const
unsigned
char
*
p
);
static
char
*
pt
(
const
unsigned
char
*
p
);
#if 0
static int cfb_test(int bits, unsigned char *cfb_cipher);
static int cfb_test(int bits, unsigned char *cfb_cipher);
static int cfb64_test(unsigned char *cfb_cipher);
static int cfb64_test(unsigned char *cfb_cipher);
static int ede_cfb64_test(unsigned char *cfb_cipher);
static int ede_cfb64_test(unsigned char *cfb_cipher);
#endif
#else
#else
static
char
*
pt
();
static
char
*
pt
();
static
int
cfb_test
();
static
int
cfb_test
();
...
@@ -306,12 +308,14 @@ test_main(void)
...
@@ -306,12 +308,14 @@ test_main(void)
des_cblock
cbc_in
[
5
];
des_cblock
cbc_in
[
5
];
des_cblock
cbc_out
[
5
];
des_cblock
cbc_out
[
5
];
DES_LONG
cs
;
DES_LONG
cs
;
unsigned
char
qret
[
4
][
4
],
cret
[
8
];
unsigned
char
cret
[
8
];
#if 0
unsigned char qret[4][4];
DES_LONG lqret[4];
DES_LONG lqret[4];
int num;
int num;
char *str;
char *str;
#endif
printf
(
"Doing ecb
\n
"
);
if
(
verbose
)
printf
(
"Doing ecb
\n
"
);
for
(
i
=
0
;
i
<
NUM_TESTS
;
i
++
)
for
(
i
=
0
;
i
<
NUM_TESTS
;
i
++
)
{
{
if
((
j
=
des_key_sched
(
&
key_data
[
i
],
ks
))
!=
0
)
if
((
j
=
des_key_sched
(
&
key_data
[
i
],
ks
))
!=
0
)
...
@@ -341,7 +345,7 @@ test_main(void)
...
@@ -341,7 +345,7 @@ test_main(void)
}
}
#ifndef LIBDES_LIT
#ifndef LIBDES_LIT
printf
(
"Doing ede ecb
\n
"
);
if
(
verbose
)
printf
(
"Doing ede ecb
\n
"
);
for
(
i
=
0
;
i
<
(
NUM_TESTS
-
1
);
i
++
)
for
(
i
=
0
;
i
<
(
NUM_TESTS
-
1
);
i
++
)
{
{
if
((
j
=
des_key_sched
(
&
key_data
[
i
],
ks
))
!=
0
)
if
((
j
=
des_key_sched
(
&
key_data
[
i
],
ks
))
!=
0
)
...
@@ -383,7 +387,7 @@ test_main(void)
...
@@ -383,7 +387,7 @@ test_main(void)
}
}
#endif
#endif
printf
(
"Doing cbc
\n
"
);
if
(
verbose
)
printf
(
"Doing cbc
\n
"
);
if
((
j
=
des_key_sched
(
&
cbc_key
,
ks
))
!=
0
)
if
((
j
=
des_key_sched
(
&
cbc_key
,
ks
))
!=
0
)
{
{
printf
(
"Key error %d
\n
"
,
j
);
printf
(
"Key error %d
\n
"
,
j
);
...
@@ -410,7 +414,7 @@ test_main(void)
...
@@ -410,7 +414,7 @@ test_main(void)
#ifndef LIBDES_LIT
#ifndef LIBDES_LIT
#if 0
#if 0
printf("Doing desx cbc\n");
if (verbose)
printf("Doing desx cbc\n");
if ((j=des_key_sched((C_Block *)cbc_key,ks)) != 0)
if ((j=des_key_sched((C_Block *)cbc_key,ks)) != 0)
{
{
printf("Key error %d\n",j);
printf("Key error %d\n",j);
...
@@ -440,7 +444,7 @@ test_main(void)
...
@@ -440,7 +444,7 @@ test_main(void)
#endif
#endif
#endif
/* LIBDES_LIT */
#endif
/* LIBDES_LIT */
printf
(
"Doing ede cbc
\n
"
);
if
(
verbose
)
printf
(
"Doing ede cbc
\n
"
);
if
((
j
=
des_key_sched
(
&
cbc_key
,
ks
))
!=
0
)
if
((
j
=
des_key_sched
(
&
cbc_key
,
ks
))
!=
0
)
{
{
printf
(
"Key error %d
\n
"
,
j
);
printf
(
"Key error %d
\n
"
,
j
);
...
@@ -631,7 +635,7 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
...
@@ -631,7 +635,7 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
}
}
#endif
#endif
printf
(
"Doing cbc_cksum
\n
"
);
if
(
verbose
)
printf
(
"Doing cbc_cksum
\n
"
);
des_key_sched
(
&
cbc_key
,
ks
);
des_key_sched
(
&
cbc_key
,
ks
);
cs
=
des_cbc_cksum
(
cbc_data
[
0
],
&
cret
,
cs
=
des_cbc_cksum
(
cbc_data
[
0
],
&
cret
,
sizeof
(
cbc_data
),
ks
,
&
cbc_iv
);
sizeof
(
cbc_data
),
ks
,
&
cbc_iv
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment