sec_key.h 1006 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef SEC_KEY_H
  2. #define SEC_KEY_H
  3. /**************************************************************************
  4. * [SEC-KEY ID]
  5. **************************************************************************/
  6. #define ROM_INFO_SEC_KEY_ID "AND_SECKEY_v"
  7. #define ROM_INFO_SEC_KEY_VER 0x1
  8. /**************************************************************************
  9. * [SEC-KEY FORNAT]
  10. **************************************************************************/
  11. #define AND_SEC_KEY_SIZE (592)
  12. typedef struct {
  13. unsigned char m_id[16];
  14. unsigned int m_sec_key_ver;
  15. /* rsa key */
  16. /* image auth key length is 256/2 = 128 */
  17. unsigned char img_auth_rsa_n[256];
  18. unsigned char img_auth_rsa_e[5];
  19. /* sml aes key */
  20. unsigned char sml_aes_key[32];
  21. /* crypto seed */
  22. unsigned char crypto_seed[16];
  23. /* rsa key */
  24. /* sml auth key length is 256/2 = 128 */
  25. unsigned char sml_auth_rsa_n[256];
  26. unsigned char sml_auth_rsa_e[5];
  27. } AND_SECKEY_T;
  28. #endif /* SEC_KEY_H */