ATSHA204A数据手册及硬件参考设计+stm32f103单片机软件例程(i2c+swi接口)DEMO源代码:
int main(void)
{
uint8_t sha204_lib_return = SHA204_SUCCESS;
uint8_t serial_number[9] = {0};
uint8_t secret_key_id = KEY_ID_0;
uint8_t secret_key[32] = {0x11,0x77,0x16,0x20,0x82,0xde,0xad,0x8c,0xe9,0x14,0x21,0x87,0xf5,0x94,0x6e,0xcd,0x0c,0x75,0x5c,0xd5,0x57,0x3c,0x3a,0x40,0x9a,0xdf,0xdb,0x83,0x55,0x1b,0xd0,0xd1};
uint8_t num_in[32] = {0};
uint8_t challenge[32] = {0};
uint8_t wakeup_response_buffer[4] = {0};
uint16_t random_number
2024-06-07 17:42:04
10.84MB
加密解密