поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

DEV-15573 датащи(PDF) 21 Page - SparkFun Electronics

номер детали DEV-15573
подробное описание детали  Cryptographic Co-Processor ATECC508A (Qwiic) Hookup Guide
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  SPARKFUN [SparkFun Electronics]
домашняя страница  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-15573 датащи(HTML) 21 Page - SparkFun Electronics

Back Button DEV-15573 Datasheet HTML 17Page - SparkFun Electronics DEV-15573 Datasheet HTML 18Page - SparkFun Electronics DEV-15573 Datasheet HTML 19Page - SparkFun Electronics DEV-15573 Datasheet HTML 20Page - SparkFun Electronics DEV-15573 Datasheet HTML 21Page - SparkFun Electronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 31 page
background image
//Let's create a digital signature!
atecc.createSignature(message); // by default, this uses the private key securely stored and loc
ked in slot 0.
Well, the comments say it all, but I will mention that by sending the argument "message", we are sending a pointer
to the first index (0), of the array. createSignature actually does 4 things for us under the hood:
1. Loads the message into the co-processor's memory location on the chip called tempKey .
2. Commands the co-processor to sign the contents of tempKey.
3. Receives the 64 byte signature and stores it in a public variable accessible at atecc.signature . Note, we
created an instance of the ATECCX08A class with the name atecc , but you could choose something
different, and then you'd need to modify how you access this signature array.
4. Prints a nice ready to compile serial debug message showing the signature. Handy for copying and
pasting between code.
Example 3: Verify
Note: If you upload the sketch as is, then it will fail to verify. This is because the public key, message and
signaure are blank. They are simply place holders at this point. Example three requires that you copy/paste
three things from Example 2: public key, message and signature. Please follow along below to get a
successful verification.
This Example shows how to verify a signature. In order for the co-processor to do this, it needs three things:
1. Public Key (of the sender)
2. Message
3. Signature
If you have just completed Example2_sign , then you should remember seeing these 3 things printed out on the
serial terminal. Before uploading Example3_verify.ino , please ensure you update the public key, message and
signature at the top of the sketch.
Also very important: you will need to rename the publicKey[64] array at the top to publicKeyExternal[64] .
This is what we will use to verify the message and signature, and so we must clarify that it is external.
Before uploading Example3_Verify.ino , we encourage you to click on the .gif below and watch a couple times.
This can help show exactly what to do.
Copying the publicKey[64] , message[32] , and signature[64] from the output of Example2_sign.ino to
operate Example3_Verify.ino . (Click to Enlarge)



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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