File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed
embedded/signature/ecc-sign-verify Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ OBJ_SP_C32 := \
19
19
$(WOLFROOT ) /wolfcrypt/src/sp_int.o\
20
20
$(WOLFROOT ) /wolfcrypt/src/sp_c32.o\
21
21
22
+ OBJ_SP_C64 := \
23
+ $(WOLFROOT ) /wolfcrypt/src/sp_int.o\
24
+ $(WOLFROOT ) /wolfcrypt/src/sp_c64.o\
25
+
22
26
OBJ_SP_ARM64 := \
23
27
$(WOLFROOT ) /wolfcrypt/src/sp_int.o\
24
28
$(WOLFROOT ) /wolfcrypt/src/sp_arm64.o\
@@ -41,12 +45,18 @@ OBJ += $(OBJ_SP_X86_64)
41
45
else ifeq ($(math) $(arch),sp arm64)
42
46
CFLAGS += -DSP_ARM64_FLAG
43
47
OBJ += $(OBJ_SP_ARM64 )
48
+ else ifeq ($(math) $(arch),sp c64)
49
+ CFLAGS += -DSP_C64_FLAG
50
+ OBJ += $(OBJ_SP_C64 )
51
+ else ifeq ($(math) $(arch),sp c32)
52
+ CFLAGS += -DSP_C32_FLAG
53
+ OBJ += $(OBJ_SP_C32 )
44
54
else ifeq ($(math), tfm)
45
55
CFLAGS += -DTFM_FLAG
46
56
OBJ += $(OBJ_TFM )
47
57
else
48
58
CFLAGS += -DSP_FLAG
49
- OBJ += $(OBJ_SP_C32 )
59
+ OBJ += $(OBJ_SP_C64 )
50
60
endif
51
61
52
62
all : ecc_sign_verify bench
63
73
rm -f ecc_sign_verify bench $(WOLFROOT ) /wolfcrypt/src/* .o
64
74
65
75
size :
66
- size $(OBJ )
76
+ size $(OBJ ) ecc_sign_verify
Original file line number Diff line number Diff line change 37
37
38
38
#ifdef SP_FLAG
39
39
#define WOLFSSL_HAVE_SP_ECC
40
- #define WOLFSSL_SP_MATH_ALL
40
+ #define WOLFSSL_SP_MATH
41
41
#undef USE_FAST_MATH
42
42
#endif
43
43
44
+ #if defined(SP_C32_FLAG )
45
+ #define WOLFSSL_HAVE_SP_ECC
46
+ #define WOLFSSL_SP_MATH
47
+ #define WOLFSSL_SP_MATH_ALL
48
+ #undef USE_FAST_MATH
49
+ #endif
50
+
51
+ #if defined(SP_C64_FLAG )
52
+ #define WOLFSSL_HAVE_SP_ECC
53
+ #define WOLFSSL_SP_MATH
54
+ #define WOLFSSL_SP_MATH_ALL
55
+ #define SP_WORD_SIZE 64
56
+ #undef USE_FAST_MATH
57
+ #endif
58
+
44
59
#ifdef SP_ARM64_FLAG
45
60
#define WOLFSSL_HAVE_SP_ECC
46
61
#define WOLFSSL_SP_MATH_ALL
You can’t perform that action at this time.
0 commit comments