diff options
Diffstat (limited to 'src/mame/igs/igs036crypt.cpp')
-rw-r--r-- | src/mame/igs/igs036crypt.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/mame/igs/igs036crypt.cpp b/src/mame/igs/igs036crypt.cpp index 352717c45d0..7fb3bed9e7d 100644 --- a/src/mame/igs/igs036crypt.cpp +++ b/src/mame/igs/igs036crypt.cpp @@ -19,7 +19,7 @@ The address-based XOR can be thought as 16 one-bit XORs against key bits controlled by certain combinations of up to three address bits. The game key is comprised of 256 8-bits values provided by the internal ARM; every 8-bit value in the key is used on those words whose address match the index modulus 256; -in a given key byte, every bit affects two positions of the correponding 16-bits +in a given key byte, every bit affects two positions of the corresponding 16-bits encrypted words. This use of the key is similar to the one found in previous instantiations of IGS circuits. @@ -179,7 +179,7 @@ const uint32_t igs036_decryptor::triggers[16][2] = { // * There are quite a number of functionally equivalent ways to implement // those boolean functions, so the given implementation (by multiplexing // over some simple functions) shouldn't be taken too seriously: while it's -// functionally correct, it doesn't neccesarily represent the way the hardware +// functionally correct, it doesn't necessarily represent the way the hardware // is calculating them. static int unknown(int address) { return 0; } @@ -288,3 +288,22 @@ const uint8_t cjdh2_key[0x100] = { 0x70, 0xc3, 0x02, 0xd2, 0xe1, 0x42, 0x42, 0x47, 0xe3, 0x20, 0x9a, 0xea, 0xe6, 0x02, 0x2a, 0x8f, 0xf3, 0x3a, 0x22, 0x7a, 0xf1, 0x58, 0x97, 0xeb, 0x41, 0x59, 0xe2, 0x73, 0xdd, 0xa7, 0x7e, 0x1f, }; + +const uint8_t bubucar_key[0x100] = { + 0x01, 0x91, 0x31, 0x00, 0x83, 0x2e, 0x05, 0x0d, 0x02, 0x31, 0x91, 0x18, 0x21, 0x2e, 0xac, 0xad, + 0x93, 0x8b, 0x91, 0x11, 0x07, 0x99, 0x84, 0x0c, 0x8b, 0x03, 0x91, 0x01, 0x84, 0x94, 0x88, 0x95, + 0x10, 0x9b, 0x91, 0xb0, 0x87, 0x80, 0x04, 0x8d, 0x82, 0xb0, 0xb0, 0x30, 0x87, 0x25, 0x80, 0x29, + 0x91, 0x10, 0x01, 0x89, 0x27, 0x8a, 0x14, 0x31, 0xba, 0xba, 0x20, 0x91, 0xbc, 0x3b, 0x3c, 0xa1, + 0x72, 0x38, 0x10, 0xe1, 0xe2, 0x88, 0xa0, 0xed, 0xb9, 0xe8, 0xf0, 0x51, 0xa6, 0x6e, 0x40, 0x65, + 0x50, 0xc8, 0x80, 0x00, 0x41, 0xc7, 0x44, 0x9d, 0x80, 0x9b, 0x00, 0x99, 0x8c, 0x81, 0x10, 0x08, + 0x61, 0x61, 0x00, 0x39, 0xa6, 0xc7, 0x85, 0x25, 0x80, 0xb2, 0xb9, 0x10, 0xa2, 0x6a, 0xc1, 0x49, + 0xd1, 0xf0, 0xe0, 0xc9, 0x82, 0x87, 0xc4, 0xec, 0xf2, 0x90, 0x29, 0xe1, 0x5d, 0x6c, 0x41, 0x80, + 0x32, 0xaa, 0x80, 0x00, 0xa6, 0x26, 0x00, 0xa9, 0x82, 0x92, 0x30, 0xb1, 0x02, 0xa0, 0x84, 0xa5, + 0x80, 0x93, 0x90, 0x08, 0x06, 0x03, 0x15, 0x94, 0x0b, 0x83, 0x91, 0x10, 0x97, 0x17, 0x81, 0x81, + 0xa0, 0xa9, 0x10, 0xa8, 0xa7, 0x2d, 0x81, 0x05, 0x98, 0x9a, 0x88, 0x80, 0xaf, 0x81, 0x29, 0xad, + 0x20, 0xb9, 0xb0, 0xa9, 0xa4, 0x33, 0x31, 0x90, 0x90, 0x18, 0x88, 0x90, 0x21, 0xaf, 0x2c, 0x80, + 0x50, 0x58, 0x80, 0xb1, 0x20, 0x64, 0xe0, 0x2c, 0xc2, 0x48, 0xe1, 0x40, 0x60, 0x23, 0xc4, 0xe8, + 0x42, 0x8b, 0x50, 0x48, 0xd4, 0x0f, 0x00, 0xd0, 0x98, 0x41, 0xc0, 0x89, 0xc3, 0x0e, 0x9c, 0x1d, + 0xe1, 0xb2, 0xc0, 0x80, 0x43, 0x42, 0x41, 0xa8, 0x5b, 0xa3, 0x68, 0x40, 0xae, 0x60, 0x01, 0x24, + 0x31, 0xb3, 0xf0, 0xf8, 0x34, 0x8e, 0xc0, 0x94, 0xa8, 0xd8, 0x10, 0xa0, 0x46, 0x33, 0xe9, 0x38, +}; |