grisp_cryptoauth

Secure Element (Microchip ATECC608B) support for GRiSP2 based on cryptoauthlib.

Build

This is meant to be build within the GRiSP2 toolchain or on a linux distribution with cryptoauthlib installed, build within the grisp_linux_builder.

Just add it as dependency in rebar3 in your main application.

Support

This library follows the ATECC608B-TFLXTLS configuration, that means in particular:

More to come :).

Writing Certificates

PrivateKey = public_key:generate_key({namedCurve, secp256r1}).
Cert = grisp_cryptoauth_cert:sign(test, PrivateKey).
grisp_cryptoauth:write_cert(primary, test, Cert).

Reading Certificates

grisp_cryptoauth:read_cert(primary, plain).
grisp_cryptoauth:read_cert(primary, der).

Notes

[1] https://ww1.microchip.com/downloads/en/Appnotes/20006367A.pdf