add macro for ecc
application may use micro-ecc for some ecc operation, which may be faster than tinycrypt, due to assamble code, but both of them have same function defination, cause build error on there case. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
844a31b24c
commit
518e455dce
@ -43,9 +43,14 @@ config TINYCRYPT_SHA256_HMAC_PRNG
|
||||
This option enables support for pseudo-random number
|
||||
generator.
|
||||
|
||||
config TINYCRYPT_ECC
|
||||
bool
|
||||
default n
|
||||
|
||||
config TINYCRYPT_ECC_DH
|
||||
bool "ECC_DH anonymous key agreement protocol"
|
||||
default n
|
||||
select TINYCRYPT_ECC
|
||||
---help---
|
||||
This option enables support for the Elliptic curve
|
||||
Diffie-Hellman anonymous key agreement protocol.
|
||||
@ -56,6 +61,7 @@ config TINYCRYPT_ECC_DH
|
||||
config TINYCRYPT_ECC_DSA
|
||||
bool "ECC_DSA digital signature algorithm"
|
||||
default n
|
||||
select TINYCRYPT_ECC
|
||||
---help---
|
||||
This option enables support for the Elliptic Curve Digital
|
||||
Signature Algorithm (ECDSA).
|
||||
|
@ -47,8 +47,11 @@ distclean::
|
||||
endif
|
||||
|
||||
CSRCS += tinycrypt/lib/source/utils.c
|
||||
|
||||
ifeq ($(CONFIG_TINYCRYPT_ECC),y)
|
||||
CSRCS += tinycrypt/lib/source/ecc.c
|
||||
CSRCS += tinycrypt/lib/source/ecc_platform_specific.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TINYCRYPT_ECC_DH),y)
|
||||
CSRCS += tinycrypt/lib/source/ecc_dh.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user