cryptotronix/EClet

Sign command fails on CryptoCape

Closed this issue · 1 comments

The sign command fails on some devices and passes on others. On a dedicated breakout board, w/o a bypass cap, the sign passes. It's failing on the CryptoCape currently.

There could be some I2C timeout issues.

It appears that running gen-key a second time resolves this issue. Gen-key increments the update count and this may be affecting the signature command?

I've contacted Atmel with this information.

The fix, in the short time is to have the driver run gen-key twice (internally) and discard the first public-key. This way the user still only has to run gen-key once.