|
JubeatPlus 3.9.11
|
The C++ Blowfish key schedule and block cipher that BFCodec wraps.
More...
#include <cstdint>
Go to the source code of this file.
Classes | |
| class | BFCodecContext |
| A Blowfish key schedule and the block cipher over it. More... | |
The C++ Blowfish key schedule and block cipher that BFCodec wraps.
Reconstructed from Ghidra program Jubeat (class BFCodecContext, image base 0x100000000). All
The context is the unusual 0x2090-byte layout the binary uses: the 18-entry P-array and the four 256-entry S-boxes are each stored as 64-bit slots holding a zero-extended 32-bit word, rather than the 0x1048 bytes a conventional Blowfish schedule needs. The initialisation constants are genuine Blowfish (the digits of pi), but the round F-function is the shipped variant – (S1[a] + S2[b]) ^ (S3[c] + S4[d]) rather than the standard ((S1[a] + S2[b]) ^ S3[c]) + S4[d] – so this is not interoperable with a standard Blowfish.