Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DEV-15573 Datasheet(PDF) 26 Page - SparkFun Electronics

Part # DEV-15573
Description  Cryptographic Co-Processor ATECC508A (Qwiic) Hookup Guide
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SPARKFUN [SparkFun Electronics]
Direct Link  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-15573 Datasheet(HTML) 26 Page - SparkFun Electronics

Back Button DEV-15573 Datasheet HTML 22Page - SparkFun Electronics DEV-15573 Datasheet HTML 23Page - SparkFun Electronics DEV-15573 Datasheet HTML 24Page - SparkFun Electronics DEV-15573 Datasheet HTML 25Page - SparkFun Electronics DEV-15573 Datasheet HTML 26Page - SparkFun Electronics DEV-15573 Datasheet HTML 27Page - SparkFun Electronics DEV-15573 Datasheet HTML 28Page - SparkFun Electronics DEV-15573 Datasheet HTML 29Page - SparkFun Electronics DEV-15573 Datasheet HTML 30Page - SparkFun Electronics Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 31 page
background image
void loop()
{
if (Serial1.available() > 0) // listen on Serial1
{
// check for start header
byte input = Serial1.read();
//Serial.print(input, HEX);
if (input == ') headerCount++;
if (headerCount == 3)
{
delay(100); // wait for entire message to come into Serial1 buffer (96 bytes at 9600 bau
d).
headerCount = 0; // reset
Serial.println("Message Received!");
Serial.println();
for (int bytes = 0 ; bytes < 32 ; bytes++) message[bytes] = Serial1.read();
for (int bytes = 0 ; bytes < 64 ; bytes++) signature[bytes] = Serial1.read();
printMessage();
printSignature();
// Let's verirfy!
if (atecc.verifySignature(message, signature, AlicesPublicKey)) Serial.println("Success! S
ignature Verified.");
else Serial.println("Verification failure.");
}
}
}
Above, we have Bob's entire loop() . He is listening for incoming data on his RX1 pin. If he hears the expected
$$$ , then he starts reading in the message and the signature, storing them in variables for later use.
Then Bob uses the atecc.verifySignature() function to see if everything is authentic. Note his third argument to
this function - he is using AlicesPublicKey!
Example 5: Random
This example shows how to use the Random Number Generator on the Sparkfun Cryptographic Co-processor. It
will print random numbers once a second on the serial terminal at 115200.
This example only requires 1 Artemis and 1 co-processor. If you just completed example 4, you can choose to use
Alice or Bob. This example helps set the stage for Example 6, so it's a good idea to check it out and see how the
ATECC508A does random numbers - particularly its ability to create 32 bytes of random data!



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com