Xilskey: Modified efuse example

Added new lines in example prints.
Modified CRC calculation API name and
provided backward compatability.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
This commit is contained in:
VNSL Durga 2015-10-10 17:29:59 +05:30 committed by Nava kishore Manne
parent 545e14f93b
commit 5e98df225c
2 changed files with 6 additions and 4 deletions

View file

@ -142,7 +142,7 @@
* 4) Program the board using $Final.bit bitstream
* 5) Output can be seen in UART terminal.
* 6) For calculating CRC of AES key reverse polynomial is 0x82F63B78 or
* one can use the API u32 Xilskey_CrcCalculation(u8 *Key)
* one can use the API u32 XilSKey_CrcCalculation(u8 *Key)
*
* MODIFICATION HISTORY:
*
@ -580,7 +580,7 @@ int main()
if (XSK_EFUSEPL_CHECK_AES_KEY_CRC == TRUE){
if (PlInstancePtr.AESKeyMatched == TRUE) {
xil_printf("AES key matched with expected AES Key's CRC");
xil_printf("AES key matched with expected AES Key's CRC\n\r");
}
else {
xil_printf("AES key not matched with expected AES's CRC "
@ -593,12 +593,14 @@ int main()
xil_printf("%02x", PlInstancePtr.UserKeyReadback[KeyCnt]);
}
}
xil_printf("\r\n");
if (XSK_EFUSEPL_READ_RSA_KEY_HASH == TRUE) {
xil_printf("\r\nEfusePL RSA hash value : 0x");
for(KeyCnt = (XSK_EFUSEPL_RSA_KEY_HASH_SIZE_IN_BYTES - 1); KeyCnt >= 0; KeyCnt--) {
xil_printf("%02x", PlInstancePtr.RSAHashReadback[KeyCnt]);
}
}
xil_printf("\r\n");
#endif
@ -631,7 +633,7 @@ EFUSE_ERROR:
*/
Status = ((PsStatus << 16) + PlStatus);
printf("eFUSE operations exit status: %08X\r\n", Status);
xil_printf("\r\neFUSE operations exit status: %08X\r\n", Status);
#ifdef XSK_ARM_PLATFORM
/**
* Writing the Exit Status to Reboot Status Register

View file

@ -368,7 +368,7 @@
* For Checking CRC of FUSE_AES XSK_EFUSEPL_CHECK_AES_KEY_ULTRA macro
* should be TRUE otherwise CRC check will not be performed.
* For calculation of AES key's CRC one can use
* u32 Xilskey_CrcCalculation(u8 *Key) API or reverse polynomial
* u32 XilSKey_CrcCalculation(u8 *Key) API or reverse polynomial
* 0x82F63B78.
*
* NOTE:Please make sure you have sufficient heap and stack to run this