 // Variables
 uint32_t id = 0x100;
 uint8_t dlc = 8;
-unsigned char stmp[8] = {0, 1, 2, 3, 4, 5, 6, 7};
+uint8_t stmp[8] = {0, 1, 2, 3, 4, 5, 6, 7};
+
+// Hash Buffers
+const uint8_t HASH_LEN = 20; // 160-bit. The other 32 bits for timestamp
+uint8_t correct_hash[HASH_LEN];
+uint8_t hash[HASH_LEN]; // for the incoming hash?
 
 MCP_CAN CAN(SPI_CS_PIN);                                    // Set CS pin
 

        dlc = Serial.parseInt();
        for(int i = 0; i < dlc; i++)
            stmp[i] = Serial.parseInt();
    }
    else
    {
        // Otherwise, Generate a random CAN message
        GenerateMessage(id, dlc, &stmp[0]);
    }
    // Display message on Serial interface
    PrintMessage();
   
    // send data:  id = 0x00, standrad frame, data len = 8, stmp: data buf
    CAN.sendMsgBuf(id, 0, dlc, stmp);
    delay(1000);                       // send data per 100ms
}



// Use http://www.seeedstudio.com/wiki/CAN-BUS_Shield if need help
#include <mcp_can.h>
#include <SPI.h>
#include <SpritzCipher.h>
#include "can_constants.h"

// the cs pin of the version after v1.1 is default to D9
