1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

test/pkg/relic: half bitsize and increase stacksize for paillier

This commit is contained in:
Mikolai Gütschow 2025-03-19 12:47:08 +01:00
parent a9508f0e56
commit 285dc275ea
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5
3 changed files with 20 additions and 6 deletions

View File

@ -29,7 +29,7 @@ BOARD_BLACKLIST := arduino-duemilanove \
z1 \
#
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(6*THREAD_STACKSIZE_DEFAULT\)
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(14*THREAD_STACKSIZE_DEFAULT\)
USEPKG += relic
USEMODULE += embunit
@ -44,6 +44,6 @@ endif
# platform.
# The rest of the parameters are configuration parameters for RELIC described in its documentation.
export RELIC_CONFIG_FLAGS=-DARCH=NONE -DOPSYS=NONE -DQUIET=off -DWSIZE=32 -DFP_PRIME=255 -DWITH="BN;MD;DV;FP;EP;CP;BC;EC" -DSEED=RIOTRND
export RELIC_CONFIG_FLAGS=-DARCH=NONE -DOPSYS=NONE -DQUIET=off -DWSIZE=32 -DFP_PRIME=255 -DWITH="BN;MD;DV;FP;EP;CP;BC;EC" -DBN_PRECI=512 -DSEED=RIOTRND
include $(RIOTBASE)/Makefile.include

View File

@ -2,30 +2,44 @@ BOARD_INSUFFICIENT_MEMORY := \
airfy-beacon \
atmega1284p \
atmega8 \
b-l072z-lrwan1 \
blackpill-stm32f103c8 \
blackpill-stm32f103cb \
bluepill-stm32f030c8 \
bluepill-stm32f103c8 \
bluepill-stm32f103cb \
calliope-mini \
cc1350-launchpad \
cc2650-launchpad \
cc2650stk \
i-nucleo-lrwan1 \
im880b \
lsn50 \
maple-mini \
microbit \
nrf51dongle \
nrf6310 \
nucleo-c031c6 \
nucleo-f030r8 \
nucleo-f031k6 \
nucleo-f042k6 \
nucleo-f070rb \
nucleo-f072rb \
nucleo-f103rb \
nucleo-f303k8 \
nucleo-f334r8 \
nucleo-l011k4 \
nucleo-l031k6 \
nucleo-l053r8 \
nucleo-l073rz \
olimex-msp430-h1611 \
olimex-msp430-h2618 \
olimexino-stm32 \
opencm904 \
samd10-xmini \
saml10-xpro \
saml11-xpro \
slstk3400a \
spark-core \
stk3200 \
stm32f030f4-demo \
stm32g0316-disco \

View File

@ -152,7 +152,7 @@ static void tests_relic_paillier_encryption(void)
bn_null(dec);
bn_new(dec);
TEST_ASSERT_EQUAL_INT(RLC_OK, cp_ghpe_gen(pub, priv, 512));
TEST_ASSERT_EQUAL_INT(RLC_OK, cp_ghpe_gen(pub, priv, 256));
#if (TEST_RELIC_SHOW_OUTPUT == 1)
printf("RELIC Paillier - key pair generation successeful\n");
@ -164,7 +164,7 @@ static void tests_relic_paillier_encryption(void)
printf("\n");
#endif
bn_rand(plain, RLC_POS, 510);
bn_rand(plain, RLC_POS, 254);
TEST_ASSERT_EQUAL_INT(RLC_OK, cp_ghpe_enc(enc, plain, pub, 1));
@ -230,7 +230,7 @@ static void tests_relic_paillier_encrypted_addition(void)
bn_null(dec);
bn_new(dec);
TEST_ASSERT_EQUAL_INT(RLC_OK, cp_ghpe_gen(pub, priv, 512));
TEST_ASSERT_EQUAL_INT(RLC_OK, cp_ghpe_gen(pub, priv, 256));
#if (TEST_RELIC_SHOW_OUTPUT == 1)
printf("\n");