key_data.h 659 B

1234567891011121314151617181920
  1. #ifndef __KEY_DATA_H__
  2. #include "r_sce.h"
  3. /** Firmware update data and user key data */
  4. typedef struct user_key_block_data
  5. {
  6. /* Provisioning key wrapped by Renesas DLM */
  7. uint8_t encrypted_provisioning_key[HW_SCE_AES_CBC_IV_BYTE_SIZE * 2];
  8. /* Initial vector to be used when creating encrypted key */
  9. uint8_t iv[HW_SCE_AES_CBC_IV_BYTE_SIZE];
  10. /* RSA 2048 bit key, encrypted by AES128-ECB */
  11. uint8_t encrypted_user_rsa2048_ne_key[HW_SCE_RSA2048_NE_KEY_BYTE_SIZE + 16];
  12. } st_user_key_block_data_t;
  13. extern const unsigned char ca_cert_der_sign[];
  14. extern const unsigned char ca_ecc_cert_der_sign[];
  15. #endif /* __KEY_DATA_H__ */