Hot!A problem of executing MAC command with ATECC508A

Author
rdhcc
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2017/11/12 19:27:01
  • Location: 0
  • Status: offline
2017/11/14 02:34:36 (permalink)
0

A problem of executing MAC command with ATECC508A

Hi, 
I am new to CryptoAuth device and just learning how to use ATECC508A.
A problem came to me that I was failed to execute MAC command with ATECC508A. I want to computes a SHA-256 digest of a private key stored in the slot with a random number stored in the TemppKey. In my case, the used SlotID is 7 with SlotConfig Byte of "AF 8F".  The MAC command was sent as 
07 08 01 00 07 45 E5.
and the response is 
04 0F 23 42
Before  MAC command was sent, I have executed NONCE command. But it didn't work. 
Anyone have experience on it?
 
Many Thanks for your reading.
#1

1 Reply Related Threads

    rdhcc
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2017/11/12 19:27:01
    • Location: 0
    • Status: offline
    Re: A problem of executing MAC command with ATECC508A 2017/12/06 18:41:45 (permalink)
    0
    I thought the problem is occurred from  SlotConfig. The slot should set as "NotECC" and not be private key.
     
    Another question is how to perform MAC command with HASH function?
     
    I am using arduino Mega to run a HASH function which is from Microchip library. But I don't know What MAC command actually do in math. I can't find any related information from datasheet. 
     
    Anyone has answer for it?
     
    Many Thanks for your reading.
     
    #2
    Jump to:
    © 2017 APG vNext Commercial Version 4.5