Arduino Forum

Products => MKR Boards => MKR1000 => Topic started by: Semaphor on Mar 10, 2017, 05:48 pm

Title: Using the ECC508 chip directly?
Post by: Semaphor on Mar 10, 2017, 05:48 pm
I'm looking to buy the MKR1000 because it has crypto capabilities. I'm wondering if this chip could be used directly so that I could take advantage of the SHA256 acceleration. Does anyone know?
Title: Re: Using the ECC508 chip directly?
Post by: sandeepmistry on Mar 13, 2017, 02:12 pm
Hi @Semaphor,

Yes, this would be possible. However, there is no official library to do this yet.

Also, in my testing it's faster to do the SHA256 on the M0 CPU itself, there is a big penalty to transferring data to and from the ECC508 over SPI.
Title: Re: Using the ECC508 chip directly?
Post by: SurfingDude on Mar 15, 2017, 05:42 pm
It strikes me that the benefit from the ECC508 chip is that it provides "absolute" secure storage for the certificate(s), something that cannot be assured in software on the M0 on the MKR1000. It is a pity though that the data path takes the SPI through the M0 instead of directly to the WINC1500.
Title: Re: Using the ECC508 chip directly?
Post by: BrightSoul on Nov 10, 2017, 07:34 am
I also need to talk to the ECC508 chip to perform RSA decryption.
I've found a library for the WiFI module which also includes crypthography functions such as the modular exponentiation for large integers, which is the one I need.
https://github.com/arduino-libraries/WiFi101/blob/master/src/driver/source/m2m_crypto.c#L418

Will this work? I think it's worth a shot.

Also, I'm, curious about what SurfindDude said: "pity though that the data path takes the SPI through the M0 instead of directly to the WINC1500."

Does this mean the SPI interface is not usable for something else? I need to talk to an Adafruit PN532 (na NFC breakout board) via SPI. Will I be able to use both the chip and the breakout board?