Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
cf7b5602
Commit
cf7b5602
authored
Feb 15, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added die function to testutils.c.
parent
84447d24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
ChangeLog
ChangeLog
+3
-0
testsuite/testutils.c
testsuite/testutils.c
+15
-3
testsuite/testutils.h
testsuite/testutils.h
+5
-1
No files found.
ChangeLog
View file @
cf7b5602
2013-02-15 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c: Removed redundant includes.
(die): New function.
Integrate ecc_mul_g.
* ecc.h: New file.
* ecc-j-to-a.c: New file.
...
...
testsuite/testutils.c
View file @
cf7b5602
...
...
@@ -10,9 +10,6 @@
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* -1 means invalid */
static
const
signed
char
hex_digits
[
0x100
]
=
...
...
@@ -35,6 +32,21 @@ static const signed char hex_digits[0x100] =
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
};
void
die
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
#if WITH_HOGWEED
gmp_vfprintf
(
stderr
,
format
,
args
);
#else
vfprintf
(
stderr
,
format
,
args
);
#endif
va_end
(
args
);
abort
();
}
void
*
xalloc
(
size_t
size
)
{
...
...
testsuite/testutils.h
View file @
cf7b5602
...
...
@@ -7,9 +7,10 @@
#include "nettle-types.h"
#include <st
rin
g.h>
#include <st
dar
g.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#if HAVE_LIBGMP
# include "bignum.h"
...
...
@@ -33,6 +34,9 @@ struct nettle_aead;
extern
"C"
{
#endif
void
die
(
const
char
*
format
,
...)
PRINTF_STYLE
(
1
,
2
)
NORETURN
;
void
*
xalloc
(
size_t
size
);
...
...
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