An audio player for macOS 10.8 and newer. https://kode54.net/cog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

300 lines
11KB

  1. #ifndef _HCA_KEYS_H_
  2. #define _HCA_KEYS_H_
  3. #include "hca_keys_awb.h"
  4. typedef struct {
  5. uint64_t key; /* hca key or seed ('user') key */
  6. const uint16_t *subkeys; /* scramble subkey table for seed key */
  7. size_t subkeys_size; /* size of the derivation subkey table */
  8. } hcakey_info;
  9. /**
  10. * List of known keys, extracted from the game files (mostly found in 2ch.net).
  11. * CRI's tools expect an unsigned 64 bit number string, but keys are commonly found online in hex form.
  12. * Keys only use 56 bits though, so the upper 8 bits can be ignored.
  13. *
  14. * ACB+AWB after mid 2018 use a user seed key + a scramble subkey in the AWB (normally 16b LE at 0x0e)
  15. * to create the final HCA key, which means there is one key per AWB (so most HCA have a unique key).
  16. * vgmstream derives the key if subkey table is provided.
  17. */
  18. static const hcakey_info hcakey_list[] = {
  19. // CRI HCA decoder default
  20. {9621963164387704}, // CF222F1FE0748978
  21. // Phantasy Star Online 2 (multi?)
  22. // used by most console games
  23. {0xCC55463930DBE1AB}, // CC55463930DBE1AB / 14723751768204501419
  24. // Old Phantasy Star Online 2 (multi?)
  25. {61891147883431481}, // 30DBE1ABCC554639
  26. // Jojo All Star Battle (PS3)
  27. {19700307}, // 00000000012C9A53
  28. // Ro-Kyu-Bu! Himitsu no Otoshimono (PSP)
  29. {2012082716}, // 0000000077EDF21C
  30. // VRIDGE Inc. games:
  31. // - HatsuKare * Renai Debut Sengen! (PSP)
  32. // - Seitokai no Ichizon Lv. 2 Portable (PSP)
  33. // - Koi wa Kousoku ni Shibararenai! (PSP)
  34. // - StormLover 2nd (PSP)
  35. // - Prince of Stride (PSVita)
  36. // - Ro-Kyu-Bu! Naisho no Shutter Chance (PSVita)
  37. {1234253142}, // 0000000049913556
  38. // Idolm@ster Cinderella Stage (iOS/Android)
  39. // Shadowverse (iOS/Android)
  40. {59751358413602}, // 00003657F27E3B22
  41. // Grimoire ~Shiritsu Grimoire Mahou Gakuen~ (iOS/Android)
  42. {5027916581011272}, // 0011DCDD0DC57F48
  43. // Idol Connect (iOS/Android)
  44. {2424}, // 0000000000000978
  45. // Kamen Rider Battle Rush (iOS/Android)
  46. {29423500797988784}, // 00688884A11CCFB0
  47. // SD Gundam Strikers (iOS/Android)
  48. {30260840980773}, // 00001B85A6AD6125
  49. // Sonic Runners (iOS/Android)
  50. {19910623}, // 00000000012FCFDF
  51. // Fate/Grand Order (iOS/Android) base assets
  52. {12345}, // 0000000000003039
  53. // Fate/Grand Order (iOS/Android) download assets *unconfirmed
  54. {9117927877783581796}, // 7E89631892EBF464
  55. // Raramagi (iOS/Android)
  56. {45719322}, // 0000000002B99F1A
  57. // Idolm@ster Million Live (iOS/Android)
  58. {765765765765765}, // 0002B875BC731A85
  59. // Kurokishi to Shiro no Maou (iOS/Android)
  60. {3003875739822025258}, // 29AFE911F5816A2A
  61. // Puella Magi Madoka Magica Side Story: Magia Record (iOS/Android)
  62. // Hortensia Saga (iOS/Android)
  63. {20536401}, // 0000000001395C51
  64. // The Tower of Princess (iOS/Android)
  65. {9101518402445063}, // 002055C8634B5F07
  66. // Fallen Princess (iOS/Android)
  67. {145552191146490718}, // 02051AF25990FB5E
  68. // Diss World (iOS/Android)
  69. {9001712656335836006}, // 7CEC81F7C3091366
  70. // Ikemen Vampire - Ijin-tachi to Koi no Yuuwaku (iOS/Android)
  71. {45152594117267709}, // 00A06A0B8D0C10FD
  72. // Super Robot Wars X-Omega (iOS/Android)
  73. {165521992944278}, // 0000968A97978A96
  74. // BanG Dream! Girls Band Party! (iOS/Android)
  75. {8910}, // 00000000000022CE
  76. // Tokyo 7th Sisters (iOS/Android) *unconfirmed
  77. {0xFDAE531AAB414BA1}, // FDAE531AAB414BA1
  78. // One Piece Dance Battle (iOS/Android)
  79. {1905818}, // 00000000001D149A
  80. // Derby Stallion Masters (iOS/Android)
  81. {19840202}, // 00000000012EBCCA
  82. // World Chain (iOS/Android)
  83. {4892292804961027794}, // 43E4EA62B8E6C6D2
  84. // Yuuki Yuuna wa Yuusha de aru - Hanayui no Kirameki / Yuyuyui (iOS/Android)
  85. {4867249871962584729}, // 438BF1F883653699
  86. // Tekken Mobile (iOS/Android)
  87. {0xFFFFFFFFFFFFFFFF}, // FFFFFFFFFFFFFFFF / 18446744073709551615
  88. // Tales of the Rays (iOS/Android)
  89. {9516284}, // 00000000009134FC
  90. // Skylock - Kamigami to Unmei no Itsutsuko (iOS/Android)
  91. {49160768297}, // 0000000B7235CB29
  92. // Tokyo Ghoul: Re Invoke (iOS/Android)
  93. {6929101074247145}, // 00189DFB1024ADE9
  94. // Azur Lane (iOS/Android)
  95. {621561580448882}, // 0002354E95356C72
  96. // One Piece Treasure Cruise (iOS/Android)
  97. {1224}, // 00000000000004C8
  98. // Schoolgirl Strikers ~Twinkle Melodies~ (iOS/Android)
  99. {0xDB5B61B8343D0000}, // DB5B61B8343D0000
  100. // Bad Apple Wars (PSVita)
  101. {241352432}, // 000000000E62BEF0
  102. // Koi to Senkyo to Chocolate Portable (PSP)
  103. {243812156}, // 000000000E88473C
  104. // Custom Drive (PSP)
  105. {2012062010}, // 0000000077EDA13A
  106. // Root Letter (PSVita)
  107. {1547531215412131}, // 00057F78B05F9BA3
  108. // Pro Evolution Soccer 2018 / Winning Eleven 2018 (Android)
  109. {14121473}, // 0000000000D77A01
  110. // Kirara Fantasia (Android/iOS)
  111. {51408295487268137}, // 00B6A3928706E529
  112. // A3! (iOS/Android)
  113. {914306251}, // 00000000367F34CB
  114. // Weekly Shonen Jump: Ore Collection! (iOS/Android)
  115. {11708691}, // 0000000000B2A913
  116. // Monster Gear Versus (iOS/Android)
  117. {0xB1E30F346415B475}, // B1E30F346415B475
  118. // Yumeiro Cast (iOS/Android)
  119. {14418}, // 0000000000003852
  120. // Ikki Tousen: Straight Striker (iOS/Android)
  121. {1000}, // 00000000000003E8
  122. // Zero kara Hajimeru Mahou no Sho (iOS/Android)
  123. {0xD2E836E662F20000}, // D2E836E662F20000
  124. // Soul Reverse Zero (iOS/Android)
  125. {2873513618}, // 00000000AB465692
  126. // Jojo's Bizarre Adventure: Diamond Records (iOS/Android) [additional data]
  127. {0x820212864CAB35DE}, // 820212864CAB35DE
  128. // HUNTER x HUNTER: World Hunt (iOS/Android)
  129. {71777214294589695}, // 00FF00FF00FF00FF
  130. // \Comepri/ Comedy Prince (iOS/Android)
  131. {201537197868}, // 0000002EEC8D972C
  132. // Puzzle of Empires (iOS/Android)
  133. {13687846}, // 0000000000D0DC26
  134. // Aozora Under Girls! (iOS/Android)
  135. {4988006236073}, // 000004895C56FFA9
  136. // Castle & Dragon (iOS/Android)
  137. {20140528}, // 00000000013351F0
  138. // Uta no Prince sama Shining Live (iOS/Android)
  139. {2122831366}, // 000000007E87D606
  140. // Sevens Story (iOS/Android)
  141. {629427372852}, // 000000928CCB8334
  142. // MinGol: Everybody's Golf (iOS/Android)
  143. {1430028151061218}, // 0005149A5FF67AE2
  144. // AKB48 Group Tsui ni Koushiki Otoge demashita. (iOS/Android)
  145. {831021912315111419}, // 0B886206BC1BA7FB
  146. // Sen no Kaizoku (iOS/Android)
  147. {81368371967}, // 00000012F1EED2FF
  148. // I Chu (iOS/Android)
  149. {13456}, // 0000000000003490
  150. // Shinobi Nightmare (iOS/Android)
  151. {369481198260487572}, // 0520A93135808594
  152. // Bungo Stray Dogs: Mayoi Inu Kaikitan (iOS/Android)
  153. {1655728931134731873}, // 16FA54B0C09F7661
  154. // Super Sentai Legend Wars (iOS/Android)
  155. {4017992759667450}, // 000E4657D7266AFA
  156. // Metal Saga: The Ark of Wastes (iOS/Android)
  157. {100097101118097115}, // 01639DC87B30C6DB
  158. // Taga Tame no Alchemist (iOS/Android)
  159. {5047159794308}, // 00000497222AAA84
  160. // Shin Tennis no Ouji-sama: Rising Beat (iOS/Android) voices?
  161. {4902201417679}, // 0000047561F95FCF
  162. // Kai-ri-Sei Million Arthur (Vita)
  163. {1782351729464341796}, // 18BC2F7463867524
  164. // Dx2 Shin Megami Tensei Liberation (iOS/Android)
  165. {118714477}, // 000000000713706D
  166. // Oira (Cygames) [iOS/Android]
  167. {46460622}, // 0000000002C4EECE
  168. // Dragon Ball Legends (Bandai Namco) [iOS/Android]
  169. {7335633962698440504}, // 65CD683924EE7F38
  170. // Princess Connect Re:Dive (iOS/Android/PC)
  171. {3201512}, // 000000000030D9E8
  172. // PriPara: All Idol Perfect Stage (Takara Tomy) [Switch]
  173. {217735759}, // 000000000CFA624F
  174. // Space Invaders Extreme (Taito Corporation, Backbone Entertainment) [PC]
  175. {91380310056}, // 0000001546B0E028
  176. // CR Another God Hades Advent (Universal Entertainment Corporation) [iOS/Android]
  177. {64813795}, // 0000000003DCFAE3
  178. // Onsen Musume: Yunohana Kore Kushon (Android) voices
  179. {6667}, // 0000000000001A0B
  180. /* Libra of Precatus (Android) */
  181. {7894523655423589588}, // 6D8EFB700870FCD4
  182. /* Mashiro Witch (Android) */
  183. {6183755869466481156}, // 55D11D3349495204
  184. /* Iris Mysteria! (Android) */
  185. {62049655719861786}, // 00DC71D5479E1E1A
  186. /* Kotodaman (Android) */
  187. {19850716}, // 00000000012EE5DC
  188. /* Puchiguru Love Live! (Android) */
  189. {355541041372}, // 00000052C7E5C0DC
  190. /* Dolls Order (Android) */
  191. {153438415134838}, // 00008B8D2A3AA076
  192. /* Fantasy Life Online (Android) */
  193. {123456789}, // 00000000075BCD15
  194. /* Wonder Gravity (Android) */
  195. {30623969886430861}, // 006CCC569EB1668D
  196. /* Ryu ga Gotoku Online (Android) */
  197. {59361939}, // 000000000389CA93
  198. /* Sengoku BASARA Battle Party (Android) */
  199. {836575858265}, // 000000C2C7CE8E59
  200. /* DAME x PRINCE (Android) */
  201. {217019410378917901}, // 030302010100080D
  202. /* Dragalia Lost (Cygames) [iOS/Android] */
  203. {2967411924141, subkeys_dgl, sizeof(subkeys_dgl) / sizeof(subkeys_dgl[0]) }, // 000002B2E7889CAD
  204. };
  205. #endif/*_HCA_KEYS_H_*/