Skip to content
Snippets Groups Projects
Commit 11c6d02d authored by Niels Möller's avatar Niels Möller
Browse files

Deleted const cast in SHEX macro.

parent 7f2c9f75
Branches
Tags
No related merge requests found
2013-02-18 Niels Möller <nisse@lysator.liu.se> 2013-02-18 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.h (SHEX): Deleted const cast.
* ecc-point.c: New file, struct ecc_point abstraction. * ecc-point.c: New file, struct ecc_point abstraction.
* ecc-scalar.c: New file, struct ecc_scalar abstraction. * ecc-scalar.c: New file, struct ecc_scalar abstraction.
* ecc-random.c (ecc_modq_random, ecc_scalar_random): New file, new * ecc-random.c (ecc_modq_random, ecc_scalar_random): New file, new
......
...@@ -216,7 +216,7 @@ test_ecc_mul_j (unsigned curve, unsigned n, const mp_limb_t *p); ...@@ -216,7 +216,7 @@ test_ecc_mul_j (unsigned curve, unsigned n, const mp_limb_t *p);
#define LDATA(x) LLENGTH(x), x #define LDATA(x) LLENGTH(x), x
#define LDUP(x) strlen(x), strdup(x) #define LDUP(x) strlen(x), strdup(x)
#define SHEX(x) ((const struct tstring *) tstring_hex(x)) #define SHEX(x) (tstring_hex(x))
#define SDATA(x) ((const struct tstring *)tstring_data(LLENGTH(x), x)) #define SDATA(x) ((const struct tstring *)tstring_data(LLENGTH(x), x))
#define H(x) (SHEX(x)->data) #define H(x) (SHEX(x)->data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment