mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pkg_micro-ecc: fix NDEBUG compile problem
This commit is contained in:
parent
89447ca68c
commit
0cafa4ed61
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "assert.h"
|
#include "test_utils/expect.h"
|
||||||
#include "hashes/sha256.h"
|
#include "hashes/sha256.h"
|
||||||
#include "uECC.h"
|
#include "uECC.h"
|
||||||
|
|
||||||
@ -117,8 +117,8 @@ int main(void)
|
|||||||
const struct uECC_Curve_t *curve = uECC_secp256r1();
|
const struct uECC_Curve_t *curve = uECC_secp256r1();
|
||||||
int errorc = 0;
|
int errorc = 0;
|
||||||
|
|
||||||
assert(uECC_curve_private_key_size(curve) <= MAX_CURVE_SIZE);
|
expect(uECC_curve_private_key_size(curve) <= MAX_CURVE_SIZE);
|
||||||
assert(uECC_curve_public_key_size(curve) <= MAX_PUBLIC_KEY_SIZE);
|
expect(uECC_curve_public_key_size(curve) <= MAX_PUBLIC_KEY_SIZE);
|
||||||
|
|
||||||
printf("Testing %d random private key pairs and signature without using HWRNG\n", TESTROUNDS);
|
printf("Testing %d random private key pairs and signature without using HWRNG\n", TESTROUNDS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user