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
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Pócs
nettle
Commits
177b7410
Commit
177b7410
authored
1 year ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Skip side-channel tests of rsa-sec-decrypt when built with mini-gmp.
parent
97f9b45b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+6
-0
6 additions, 0 deletions
ChangeLog
testsuite/rsa-sec-decrypt-test.c
+4
-0
4 additions, 0 deletions
testsuite/rsa-sec-decrypt-test.c
testsuite/sc-valgrind.sh
+2
-2
2 additions, 2 deletions
testsuite/sc-valgrind.sh
with
12 additions
and
2 deletions
ChangeLog
+
6
−
0
View file @
177b7410
2023-10-06 Niels Möller <nisse@lysator.liu.se>
2023-10-06 Niels Möller <nisse@lysator.liu.se>
* testsuite/rsa-sec-decrypt-test.c (test_main): Skip side-channel
test if built with mini-gmp.
* testsuite/sc-valgrind.sh (with_valgrind): Pass
--exit-on-first-error=yes.
* aclocal.m4 (NETTLE_PROG_VALGRIND): New macro.
* aclocal.m4 (NETTLE_PROG_VALGRIND): New macro.
* configure.ac: Use it.
* configure.ac: Use it.
* testsuite/Makefile.in (TS_SH): Include side-channel tests only
* testsuite/Makefile.in (TS_SH): Include side-channel tests only
...
...
This diff is collapsed.
Click to expand it.
testsuite/rsa-sec-decrypt-test.c
+
4
−
0
View file @
177b7410
...
@@ -70,6 +70,10 @@ test_main(void)
...
@@ -70,6 +70,10 @@ test_main(void)
mpz_t
garbage
;
mpz_t
garbage
;
unsigned
count
;
unsigned
count
;
#if NETTLE_USE_MINI_GMP
if
(
test_side_channel
)
SKIP
();
#endif
rsa_private_key_init
(
&
key
);
rsa_private_key_init
(
&
key
);
rsa_public_key_init
(
&
pub
);
rsa_public_key_init
(
&
pub
);
mpz_init
(
gibberish
);
mpz_init
(
gibberish
);
...
...
This diff is collapsed.
Click to expand it.
testsuite/sc-valgrind.sh
+
2
−
2
View file @
177b7410
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
# using valgrind.
# using valgrind.
with_valgrind
()
{
with_valgrind
()
{
type
valgrind
>
/dev/null
||
exit
77
type
valgrind
>
/dev/null
2>&1
||
exit
77
NETTLE_TEST_SIDE_CHANNEL
=
1 valgrind
-q
--error-exitcode
=
1
"
$@
"
NETTLE_TEST_SIDE_CHANNEL
=
1 valgrind
-q
--exit-on-first-error
=
yes
--error-exitcode
=
1
"
$@
"
}
}
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