cryptoauthlib icon indicating copy to clipboard operation
cryptoauthlib copied to clipboard

Arduino support

Open gyengus opened this issue 6 years ago • 6 comments

Do you have, or plan arduino support?

gyengus avatar Aug 09 '18 13:08 gyengus

Check these projects, would they help? https://github.com/arduino-libraries/ArduinoBearSSL https://github.com/arduino-libraries/ArduinoECCX08 https://github.com/CryptoThings/AtCryptoAuthLib

ronnytittoto avatar Aug 14 '18 13:08 ronnytittoto

@bryan-hunt it would be awesome to have an official library. I'm developing using https://github.com/esp8266/Arduino so Arduino/ESP8266/ESP32 support would be awesome! https://github.com/CryptoThings/AtCryptoAuthLib is a good starting point

Misiu avatar Jan 18 '19 14:01 Misiu

@gyengus @Misiu I have been working on fork here: https://github.com/GabrielNotman/cryptoauthlib

I still need to add some instructions and examples but here are the main points:

  • The library needs to be installed in one of the Arduino library folders (not the sketch folder).
  • Currently only implements i2c and i2c bitbang.
  • Arduino HAL selection is done via /src/arduino_hal_select.h
  • For i2c, bus 0 must be selected (multi-bus support is not supported yet).

I've tested it with a SAMD21 based board. For AVR boards you might need to use bitbang due to Wire buffer sizes.

GabrielNotman avatar Jan 22 '19 16:01 GabrielNotman

@GabrielNotman any plans of syncing it up with the latest release from Microchip? I was looking to use with the Atecc Trust and Go chips ATECC608 TNGTLS.

gannaramu avatar Nov 08 '20 19:11 gannaramu

@gannaramu I'm currently working on updating it to v3.2.4.

GabrielNotman avatar Nov 15 '20 20:11 GabrielNotman

@GabrielNotman That would be really helpful!. I can help you test things I have a cryptoauth trust platform connected to a teensy4.0 board. For the past couple of days, I have been modifying the https://github.com/sparkfun/SparkFun_ATECCX08a_Arduino_Library to be able to read the X509 certificate stored in the device. I was still not sure how to decompress the certificate to a PEM format. Could you please guide me with any relevant resources?.

Thanks Ram Rohit

gannaramu avatar Nov 15 '20 22:11 gannaramu