Secure Click Board
Secure Click Board
The Secure Click Board™ carries the ATECC508 Acryptographic coprocessor with secure hardware-based key storage. The Click Board™ is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over I2C interface.
NOTE: The Click Board™ comes with stacking headers which allow you to combine it with other Click Boards™ more easily by using just one MikroBUS socket.
Software Support
Software
Code examples for Secure click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The following code snippet gets the public key from slot 0, generates the signature for a message using that key, and then verifies that signature.
01 if (atcab_get_pubkey(0, publicKeyBuffer) == ATCA_SUCCESS) 02 { 03 LOG( "rnrn Public key: " ); 04 outputHex (publicKeyBuffer, 64); 05 } 06 else LOG( "rn Getting public key failed..." ); 07 //Generates the signature from input message, using key in slot 0. 08 if (atcab_sign(0, messageBuffer, signatureBuffer) == ATCA_SUCCESS) 09 { 10 LOG( "rnrn Generating signature: " ); 11 outputHex (signatureBuffer, 64); 12 } 13 else LOG( "rn Generating signature failed..." ); 14 //Verification of signature 15 LOG( "rnrn Signature verification..." ); 16 if (atcab_verify_extern(messageBuffer, signatureBuffer, publicKeyBuffer, responseBuffer) == ATCA_SUCCESS) 17 { 18 if (responseBuffer [0]) 19 LOG( "rn Signature is valid " ); 20 else LOG( "rn Signature is invalid " ); 21 } 22 else LOG( "rn Verification operation failed..." );
Secure Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.