summaryrefslogtreecommitdiff
path: root/utils/atj2137/atjboottool/atj_tables.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-10-26 18:16:00 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-10-26 18:17:59 +0100
commit7807934a271e9eb7b045cdcd89ba70fb59a91d69 (patch)
treeffe7ba88cd88aa7d32f3484edb11eec59204b333 /utils/atj2137/atjboottool/atj_tables.c
parent3ad9caeb2a8443b5975fb91c83d2793166a4e4f6 (diff)
downloadrockbox-7807934a271e9eb7b045cdcd89ba70fb59a91d69.tar.gz
rockbox-7807934a271e9eb7b045cdcd89ba70fb59a91d69.zip
atjboottool: document more header fields and crypto code
The encryption definitely uses some standard elliptic curve encryption over binary fields (163 and 233 bits, standard polynomials). It is still unclear how this is used in the actual encryption, the key authentification and derivation do not look standard. Change-Id: I6b9180ff7e6115e1dceca8489e986a02a9ea6fc9
Diffstat (limited to 'utils/atj2137/atjboottool/atj_tables.c')
-rw-r--r--utils/atj2137/atjboottool/atj_tables.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/utils/atj2137/atjboottool/atj_tables.c b/utils/atj2137/atjboottool/atj_tables.c
index ab3444cbaa..579e17d52b 100644
--- a/utils/atj2137/atjboottool/atj_tables.c
+++ b/utils/atj2137/atjboottool/atj_tables.c
@@ -109,11 +109,6 @@ uint8_t g_decode_B_table[20] =
109 0xf8, 0xb4, 0x36, 0x41, 0xc5, 0x51, 0xaf 109 0xf8, 0xb4, 0x36, 0x41, 0xc5, 0x51, 0xaf
110}; 110};
111 111
112uint32_t g_xor_key[9] =
113{
114 1, 0, 0, 0, 0, 0, 0, 0, 0
115};
116
117uint32_t g_crypto_table[8] = 112uint32_t g_crypto_table[8] =
118{ 113{
119 0xefad6126, 0x0a4c9d6e, 0x19c26bf5, 0x149563a4, 0x29f22ff4, 0x7e731af1, 114 0xefad6126, 0x0a4c9d6e, 0x19c26bf5, 0x149563a4, 0x29f22ff4, 0x7e731af1,
@@ -142,7 +137,7 @@ uint32_t g_crypto_key4[6] =
142 0x797324f1, 0xb11c5c0c, 0xa2cdd545, 0x71a0094f, 0xd51fbc6c, 0x00000000 137 0x797324f1, 0xb11c5c0c, 0xa2cdd545, 0x71a0094f, 0xd51fbc6c, 0x00000000
143}; 138};
144 139
145uint32_t g_crypto_data3[6] = 140uint32_t g_atj_ec163_a[6] =
146{ 141{
147 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 142 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000
148}; 143};
@@ -152,7 +147,7 @@ uint32_t g_crypto_key5[6] =
152 0x4a3205fd, 0x512f7874, 0x1481eb10, 0xb8c953ca, 0x0a601907, 0x00000002 147 0x4a3205fd, 0x512f7874, 0x1481eb10, 0xb8c953ca, 0x0a601907, 0x00000002
153}; 148};
154 149
155uint32_t g_crypto_data[8] = 150uint32_t g_atj_ec233_a[8] =
156{ 151{
157 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 152 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
158}; 153};