Lines Matching refs:decrypt

21 void crsbingo_bitswaps(uint8_t *decrypt, int i)  in crsbingo_bitswaps()  argument
23 if ((i&7) == 0) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in crsbingo_bitswaps()
24 if ((i&7) == 1) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,0,3,6,5,4 ); in crsbingo_bitswaps()
25 if ((i&7) == 2) decrypt[i] = bitswap<8>(decrypt[i], 3,2,5,0,7,6,1,4 ); in crsbingo_bitswaps()
26 if ((i&7) == 3) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,0,3,6,1,4 ); in crsbingo_bitswaps()
27 if ((i&7) == 4) decrypt[i] = bitswap<8>(decrypt[i], 7,6,5,0,3,2,1,4 ); in crsbingo_bitswaps()
28 if ((i&7) == 5) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,4,3,6,5,0 ); in crsbingo_bitswaps()
29 if ((i&7) == 6) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,0,3,6,5,4 ); in crsbingo_bitswaps()
30 if ((i&7) == 7) decrypt[i] = bitswap<8>(decrypt[i], 3,2,1,0,7,6,5,4 ); in crsbingo_bitswaps()
33 void sharkpy_bitswaps(uint8_t *decrypt, int i) in sharkpy_bitswaps() argument
35 if ((i&7) == 0) decrypt[i] = bitswap<8>(decrypt[i], 3,2,1,0,7,6,5,4 ); in sharkpy_bitswaps()
36 if ((i&7) == 1) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in sharkpy_bitswaps()
37 if ((i&7) == 2) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,4,3,6,5,0 ); in sharkpy_bitswaps()
38 if ((i&7) == 3) decrypt[i] = bitswap<8>(decrypt[i], 3,6,1,0,7,2,5,4 ); in sharkpy_bitswaps()
39 if ((i&7) == 4) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in sharkpy_bitswaps()
40 if ((i&7) == 5) decrypt[i] = bitswap<8>(decrypt[i], 3,2,5,4,7,6,1,0 ); in sharkpy_bitswaps()
41 if ((i&7) == 6) decrypt[i] = bitswap<8>(decrypt[i], 7,6,1,4,3,2,5,0 ); in sharkpy_bitswaps()
42 if ((i&7) == 7) decrypt[i] = bitswap<8>(decrypt[i], 3,6,1,4,7,2,5,0 ); in sharkpy_bitswaps()
45 void victor5_bitswaps(uint8_t *decrypt, int i) in victor5_bitswaps() argument
47 if ((i&7) == 0) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in victor5_bitswaps()
48 if ((i&7) == 1) decrypt[i] = bitswap<8>(decrypt[i], 7,6,5,0,3,2,1,4 ); in victor5_bitswaps()
49 if ((i&7) == 2) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,0,3,6,5,4 ); in victor5_bitswaps()
50 if ((i&7) == 3) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,0,3,6,5,4 ); in victor5_bitswaps()
51 if ((i&7) == 4) decrypt[i] = bitswap<8>(decrypt[i], 3,2,1,0,7,6,5,4 ); in victor5_bitswaps()
52 if ((i&7) == 5) decrypt[i] = bitswap<8>(decrypt[i], 7,6,5,0,3,2,1,4 ); in victor5_bitswaps()
53 if ((i&7) == 6) decrypt[i] = bitswap<8>(decrypt[i], 3,6,1,0,7,2,5,4 ); in victor5_bitswaps()
54 if ((i&7) == 7) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,4,3,6,5,0 ); in victor5_bitswaps()
57 void victor21_bitswaps(uint8_t *decrypt, int i) in victor21_bitswaps() argument
59 if ((i&7) == 0) decrypt[i] = bitswap<8>(decrypt[i], 7,2,1,0,3,6,5,4 ); in victor21_bitswaps()
60 if ((i&7) == 1) decrypt[i] = bitswap<8>(decrypt[i], 3,6,1,4,7,2,5,0 ); in victor21_bitswaps()
61 if ((i&7) == 2) decrypt[i] = bitswap<8>(decrypt[i], 3,2,1,4,7,6,5,0 ); in victor21_bitswaps()
62 if ((i&7) == 3) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in victor21_bitswaps()
63 if ((i&7) == 4) decrypt[i] = bitswap<8>(decrypt[i], 7,2,5,4,3,6,1,0 ); in victor21_bitswaps()
64 if ((i&7) == 5) decrypt[i] = bitswap<8>(decrypt[i], 3,6,5,0,7,2,1,4 ); in victor21_bitswaps()
65 if ((i&7) == 6) decrypt[i] = bitswap<8>(decrypt[i], 7,6,5,4,3,2,1,0 ); in victor21_bitswaps()
66 if ((i&7) == 7) decrypt[i] = bitswap<8>(decrypt[i], 3,2,1,4,7,6,5,0 ); in victor21_bitswaps()
72 void dump_decrypted(running_machine& machine, uint8_t* decrypt)
80 fwrite(decrypt, 0x10000, 1, fp);
86 void subsino_decrypt(running_machine& machine, void (*bitswaps)(uint8_t *decrypt, int i), const uin… in subsino_decrypt() argument
89 std::unique_ptr<uint8_t[]> decrypt = std::make_unique<uint8_t[]>(0x10000); in subsino_decrypt() local
96 decrypt[i] = region[i]^xors[i&7]; in subsino_decrypt()
97 bitswaps(decrypt.get(), i); in subsino_decrypt()
101 decrypt[i] = region[i]; in subsino_decrypt()
105 memcpy(region, decrypt.get(), 0x10000); in subsino_decrypt()