1
0
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:
Gunar Schorcht 2020-02-25 09:28:59 +01:00
parent 89447ca68c
commit 0cafa4ed61

View File

@ -36,7 +36,7 @@
#include <stdio.h>
#include <string.h>
#include "assert.h"
#include "test_utils/expect.h"
#include "hashes/sha256.h"
#include "uECC.h"
@ -117,8 +117,8 @@ int main(void)
const struct uECC_Curve_t *curve = uECC_secp256r1();
int errorc = 0;
assert(uECC_curve_private_key_size(curve) <= MAX_CURVE_SIZE);
assert(uECC_curve_public_key_size(curve) <= MAX_PUBLIC_KEY_SIZE);
expect(uECC_curve_private_key_size(curve) <= MAX_CURVE_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);