GoogleCloudPlatform / iot-device-sdk-embedded-c

Cloud IoT Device SDK for Connectivity to IoT Core.
Other
247 stars 83 forks source link

ATECC608A compilation #116

Open waqasqammar opened 3 years ago

waqasqammar commented 3 years ago

The google sdk integrates the ATECC608A. But I am not sure how I can use it in my code. I have checked iotc_create_iotcore_jwt and it finally call iotc_bsp_ecc function. Now this function has 3 definitions which are related to mbdtls, wolfssl, and ATECC crypto library. Now I have tried to change the IOTC_BSP_CRYPTO ?= $(IOTC_BSP_TLS) to IOTC_BSP_CRYPTO ?= cryptoauth but it didn't attach with that. I wanted to know if anyone can guide me so I can use that chip with google SDK? can I use in a way like I would use 32SE ECDSA sign/verify example and keep the google sdk as it is. I am using it with ESP32 and wanted to create JWT Authentication using this chip for IoT core

atigyi commented 3 years ago

Try setting cryptoauthlib usage in the commandline while building the library. make IOTC_BSP_CRYPTO=cryptoauthlib