Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on usage with atecc608a module and wolfMQTT #2250

Closed
Aareksio opened this issue May 21, 2019 · 1 comment
Closed

Clarification on usage with atecc608a module and wolfMQTT #2250

Aareksio opened this issue May 21, 2019 · 1 comment
Assignees

Comments

@Aareksio
Copy link

Aareksio commented May 21, 2019

Hi,

I'm trying to setup raspberry pi with the most simple application that connects to AWS IoT using encryption provided by atecc608a.

Could you please provide updated example of usage with atecc608a module (and ideally further, with wolfMQTT)?

Reading through code, documentation and issues, I found myself lost, a few examples:

As my understanding of C code, not to mention wolfSSL, is fairly limited, I'd appreciate a working example or up-to-date clarification on how to use the library with the module.

@dgarske
Copy link
Contributor

dgarske commented May 21, 2019

Hi Aareksio,

The CryptoAuthLib support for the atcatls API's were removed by Atmel, so we pulled them into a branch we have here:
https://github.com/dgarske/cryptoauthlib/tree/atcatls

The wolfSSL TLS use of the ATECC chip is currently supported via the PK callbacks (HAVE_PK_CALLBACKS). The best information can be found here:
https://github.com/wolfSSL/wolfssl/tree/master/wolfcrypt/src/port/atmel

You'll need to build with WOLFSSL_ATECC508A and HAVE_PK_CALLBACKS and call atcatls_set_callbacks(ctx) to setup the PK callbacks. To debug add WOLFSSL_ATECC508A_DEBUG.

The wolfCrypt_Init() function will call atmel_init() in atmel.c to setup the hardware. You can customize the ATECC slots using macros here: https://github.com/wolfSSL/wolfssl/blob/master/wolfssl/wolfcrypt/port/atmel/atmel.h#L47

Make sure and use the latest GitHub master as there were some recent ATECC fixes merged:
The following fixes have been made since release:
#2199
#2172
#2086
#2052
#2034

Thanks,
David Garske, wolfSSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants