From 62c8947373c442a8a89d70074c08a1ce70ad9951 Mon Sep 17 00:00:00 2001 From: bogdan Date: Tue, 23 Jun 2020 23:33:01 +0300 Subject: [PATCH] NEW: Make the crypto test compatible with ATSHA204A. Eliminate the config word 3 checking. In ATSHA204A that value can vary and software should not depend on any particular value. --- .../sw/embedded/microblaze/helloworld.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/contrib-projects/nf1_cml_crypto_example/sw/embedded/microblaze/helloworld.c b/contrib-projects/nf1_cml_crypto_example/sw/embedded/microblaze/helloworld.c index 8bb901c5..ec596992 100644 --- a/contrib-projects/nf1_cml_crypto_example/sw/embedded/microblaze/helloworld.c +++ b/contrib-projects/nf1_cml_crypto_example/sw/embedded/microblaze/helloworld.c @@ -142,24 +142,6 @@ void atsha_config_test(void) xil_printf(" Success reading ATSHA204 Config word 0\r\n"); xil_printf(" received: 0x0123\r\n"); } - // checks to verify a manufacturer hard coded value is read correctly - if(FALSE == read_config(&rcv_data[0], 3)) { - xil_printf(" Failure reading ATSHA204 Config word 3\r\n"); - xil_printf("\r\n!! Read ATSHA204 Config Test FAILED !!\r\n\n"); - return; - } - - if((rcv_data[0] != 0xEE) || (rcv_data[1] != 0x55) || (rcv_data[3] != 0x00)) - { - xil_printf(" Failure reading ATSHA204 Config word 3\r\n"); - xil_printf(" Read was successful, but data did not match:\r\n"); - xil_printf(" expected: 0xEE55xx00, received 0x%02X%02Xxx%02X\r\n", rcv_data[0], rcv_data[1], rcv_data[3]); - xil_printf("\r\n!! Read ATSHA204 Config Test FAILED !!\r\n\n"); - return; - } else { - xil_printf(" Success reading ATSHA204 Config word 3\r\n"); - xil_printf(" received: 0xEE55xx00\r\n"); - } // check to see if the slot configuration was cleared during our // manufacturing test...