-
-
Save SciresM/f3d20f8c77f5514f2d142c9760939266 to your computer and use it in GitHub Desktop.
QR Rental Team structs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct | |
{ | |
u8 data[0x18E]; | |
u8 memesig[0x60]; | |
} qr_meme_t; | |
typedef struct | |
{ | |
u8 metadata_flags[0x8]; | |
u8 random_ctr_for_aes[0x10]; | |
u8 aes_ctr_encrypted_data[0x1CE]; | |
u8 sha1_of_preceding[0x8]; | |
} qr_t; | |
typedef struct | |
{ | |
u8 metadata_flags[0x8]; | |
u8 random_ctr_for_Aes[0x10]; | |
u8 pokemon_1[0x30]; | |
u8 pokemon_2[0x30]; | |
u8 pokemon_3[0x30]; | |
u8 pokemon_4[0x30]; | |
u8 pokemon_5[0x30]; | |
u8 pokemon_6[0x30]; | |
u64 game_sync_id; | |
u8 unknown_data[0xA6]; | |
u8 sha1_of_preceding[0x8]; | |
} qr_dec_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to write a decoder using this as a guide. However, I find that the QR codes have 507 bytes, but there are 494 bytes in the struct. I'm trying to find which bytes to remove so I get the right data to decode.
EDIT
Found the issue. Using ZXing for decoding. The getRawBytes() returns the 3 header Bytes, and shifted everything to the left by 4 bits. Shifted them back, and now its de-meme'd.